Ethereum: Sending ERC-20 tokens via Safe CLI does not work
As a growing community of developers and enthusiasts, we have encountered an issue with the Ethereum Virtual Machine (EVM) client (Safe CLI) when trying to send ERC-20 tokens using the send_erc20 tx
command. This article aims to provide information about the issue and possible solutions.
Problem Description
The issue stems from a combination of factors:
- Insufficient Ownership: The EVM client does not receive enough signing approvals to sign the transaction.
- UI Issues: The UI for sending transactions on CELO (Cosmos SDK) does not work properly, preventing users from completing the task.
- Version Compatibility: The Safe CLI version is not compatible with Cosmos SDK v1.3.0.
Step 1: Verify EVM Client Version
Before attempting to resolve the issue, make sure your EVM Client version is up to date:
evm --version
If you are using a recent version of the Safe CLI or an older version, consider updating it.
Step 2: Verify Insufficient Signature Approvals
Verify that the send_erc20 tx
command requires sufficient signature approvals. You can do this by running:
evm --accounts --accounts send_erc20 tx --gas 2000000 --gasPrice 1000000000000000000000000000000000000000000000 --from
If your account does not receive enough signing approvals, you will see an error message indicating that the transaction will fail.
Step 3: Update the CELO transaction submission UI
Try updating your Cosmos SDK to the latest version:
cosmos-sdk update
Then, run cosmos-sdk CLI
with the following options:
cosmos-sdk --ui --chain dev
This will bring up the CELO transaction submission UI.
Step 4: Troubleshoot EVM client
To troubleshoot EVM client, you can try:
- Manual signing: Use a tool like
sigchain
to manually sign the transaction.
- EIP-1277 updates
: Make sure your EVM client version is up to date with the latest EIP-1277 fixes.
Conclusion
After fixing the EVM client and UI issues, you should be able to successfully send ERC-20 tokens using the send_erc20 tx
command on CELO. If you encounter any further errors or difficulties, please refer to the official Cosmos SDK documentation and the Ethereum Virtual Machine (EVM) client documentation for more information.
By following these steps, you will be well on your way to resolving this issue and continuing to explore the exciting world of Ethereum and Cosmos.