Skip to content

Conversation

@tomip01
Copy link
Contributor

@tomip01 tomip01 commented Dec 1, 2025

Motivation

We want to be able to use the interface of ERC20 transfers via cli.

Description

  • The transfer function in sdk/src/sdk.rs is refactored to accept an optional calldata argument and to use the provided Overrides value directly, enabling both native and ERC20 token transfers.
  • The CLI transfer commands now construct ERC20 transfer transactions by encoding the transfer(address,uint256) calldata when a token address is provided, and set the transfer value to zero.

@tomip01 tomip01 marked this pull request as ready for review December 1, 2025 13:19
@tomip01 tomip01 requested a review from a team as a code owner December 1, 2025 13:19
@tomip01 tomip01 self-assigned this Dec 1, 2025
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