Use OZ 0.8.1 implementation of STRK and ETH ERC20 token contracts#750
Use OZ 0.8.1 implementation of STRK and ETH ERC20 token contracts#750
Conversation
WalkthroughThis pull request removes an outdated compilation record file and updates constants to reference a new ERC20 contract version (from 0.20.0 to 0.8.1) along with its corresponding class hash. It refactors the ERC20 initialization process in the predeployed contracts by removing an intermediary string conversion function and integrating its logic directly. Additionally, it updates integration tests to validate the ERC20 token name and symbol instead of decimals, and removes unused imports. Changes
Sequence Diagram(s)sequenceDiagram
participant I as initialize_erc20_at_address
participant L as Loop (name & symbol)
participant C as parse_cairo_short_string
participant S as Contract Storage
I->>L: Iterate over token properties (name, symbol)
L->>C: Convert each property to felt value
C-->>L: Return felt conversion or error
L->>S: Store converted felt value in storage
Assessment against linked issues
Possibly related PRs
Suggested reviewers
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
🧰 Additional context used🧬 Code Definitions (1)tests/integration/general_integration_tests.rs (1)
🔇 Additional comments (4)
✨ Finishing Touches
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Usage related changes
nameandsymbol#739Development related changes
Checklist:
./scripts/format.sh./scripts/clippy_check.sh./scripts/check_unused_deps.sh./scripts/check_spelling.sh./website/README.mdSummary by CodeRabbit