invalid arrayify value (argument="value", value=“Token Trade0000000000000000000000000000000000000000000000000000", code=INVALID_ARGUMENT, version=bytes/5.0.5)
While compiling an ERC20 token contract, i’ve got this error. Any idea what this means?
This error is received at the time of compiling the migrations file.
Dec 26, 2020, 3:46 PM
Migrations file.
Dec 26, 2020, 3:46 PM
Would have been helpful if you shared your token contract's constructor.
However try implementing the following :
1. Check if the argument passed in migration file is correct with respect to the token Contract constructor.
I guess you are supposed to pass the variables in the following order in migration file.
name, Symbol, decimal , initialSupply.
you have passed
name, decimal , Symbol, initialSupply.
2. Simple import the contract this way.
artifacts.require("Token")
Lemme know if this helps @Coin_TA
However try implementing the following :
1. Check if the argument passed in migration file is correct with respect to the token Contract constructor.
I guess you are supposed to pass the variables in the following order in migration file.
name, Symbol, decimal , initialSupply.
you have passed
name, decimal , Symbol, initialSupply.
2. Simple import the contract this way.
artifacts.require("Token")
Lemme know if this helps @Coin_TA
Dec 26, 2020, 8:17 PM
Please check the above screenshot.
Works. Silly me. Thanks a ton @tyler1111
Dec 27, 2020, 5:04 AM