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

feature: included ERC20 contract address among the data in tokens.ckerc20.json #1505

Conversation

AntonioVentilii-DFINITY
Copy link
Collaborator

@AntonioVentilii-DFINITY AntonioVentilii-DFINITY commented Jun 20, 2024

Motivation

It will be useful to save the ERC20 contract address of the twin token during the job to create the JSON, for example for PR #1471 .

Changes

  • Deconstruct property erc20_contract and map it.
  • Adjust zod type.

Tests

Running locally, the script worked and there was no disruption in the replica.

Copy link
Member

@peterpeterparker peterpeterparker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks

Share two ideas

scripts/build.tokens.ckerc20.mjs Outdated Show resolved Hide resolved
src/frontend/src/icp/types/env-token-ckerc20.ts Outdated Show resolved Hide resolved
@AntonioVentilii-DFINITY AntonioVentilii-DFINITY merged commit f9bd534 into main Jun 20, 2024
6 checks passed
@AntonioVentilii-DFINITY AntonioVentilii-DFINITY deleted the feature/include-erc20-twin-address-in-ckerc20-json branch June 20, 2024 16:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants