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

refactor: change data types to handle ERC20 tokens #130

Merged
merged 2 commits into from
Oct 11, 2024

Conversation

bitfalt
Copy link
Collaborator

@bitfalt bitfalt commented Oct 11, 2024

Pull Request

Closes #129

Changes description

Modify the data types across smart contracts and constants to u256 to handle ERC20 token transactions

Comments

Necessary refactor to start working on #120 and #121 properly.

@@ -4,5 +4,6 @@
pub mod FundConstants {
pub const UP_VOTES_NEEDED: u32 = 100;
pub const INITIAL_UP_VOTES: u32 = 0;
pub const INITIAL_GOAL: u64 = 0;
pub const INITIAL_GOAL: u256 = 0;
pub const STRK_TOKEN_ADDRESS: felt252 = 0x04718f5a0fc34cc1af16a1cdee98ffb20c31f5cd61d6ab07201858f4287c938d;
Copy link
Member

Choose a reason for hiding this comment

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

@EmmanuelAR did you planned to add a new constant file for managing token addresses?

Copy link
Collaborator

Choose a reason for hiding this comment

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

merge, i will create a new file

Copy link
Member

Choose a reason for hiding this comment

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

got it

@EmmanuelAR EmmanuelAR merged commit 129a5fb into web3wagers:dev Oct 11, 2024
5 checks passed
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.

[refactor] Change data types in smart contracts to handle ERC20 transactions
3 participants