Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Translate Erc20 to the new syntax #118

Closed
virgil-serbanuta opened this issue Oct 2, 2024 · 1 comment
Closed

Translate Erc20 to the new syntax #118

virgil-serbanuta opened this issue Oct 2, 2024 · 1 comment
Assignees
Labels

Comments

@virgil-serbanuta
Copy link
Member

virgil-serbanuta commented Oct 2, 2024

Relevant for #117

We would need to:

  • Use the new attributes for the contract, endpoints and storage (#[ethereum::contract], #[endpoint(endpointName)], #[storage("storage_name")])
  • Use the new data types (Int256 for amounts, Address for addresses, Storage for the storage object) and remove the old ones (e.g. BigUint, StorageMapper).
  • Use the new Hooks trait for blockchain functionality instead of the old blockchain/send/whatever functions.
  • Use "Bytes" wherever we need bytes.
@ACassimiro ACassimiro self-assigned this Oct 8, 2024
@ACassimiro
Copy link
Collaborator

Addressed on #146.

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

No branches or pull requests

2 participants