Skip to content
This repository has been archived by the owner on Jun 6, 2024. It is now read-only.

Create custom ContractType to override selector fn to use starknet_keccak #20

Open
antazoey opened this issue Jun 13, 2022 · 0 comments

Comments

@antazoey
Copy link
Member

Overview

Currently, we cannot access methods the nice way using the keccak selectors with contract types from Cairo.
We should make a custom StarknetContractType in the compiler with its own selector method so the ape-starknet plugin can load method ABIs when its is re-serializing transactions.

Specification

StarknetContractType(ContractType):
  _selector_hash_fn = starknet_keccak

Dependencies

Include links to any open issues that must be resolved before this feature can be implemented.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant