The node send command does not fetch the number of decimals from the contract when transferring ERC20 tokens and uses the default utility function for ETH to convert from float to wei. This works fine for RPL and many other tokens, but e.g. 1 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48, i.e. an intended transfer of 1 USDC is incorrectly converted to 1,000,000,000,000 USDC.
The
node sendcommand does not fetch the number of decimals from the contract when transferring ERC20 tokens and uses the default utility function for ETH to convert from float to wei. This works fine for RPL and many other tokens, but e.g.1 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48, i.e. an intended transfer of 1 USDC is incorrectly converted to 1,000,000,000,000 USDC.