Call Us 786-865-0767

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 an overview of the issue and possible solutions.

Problem Description

The issue arises 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, it is recommended to update 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 10 ...

If the account does not receive sufficient signature approvals, you will receive 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

You will see the CELO Transaction Submission UI.

Step 4: Troubleshoot EVM Client

Ethereum: send_erc20 tx on safe CLI not working on CELO

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 updated 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.