Fix big int error
package action
import (
+ "math/big"
+
"github.com/spf13/cobra"
"github.com/iotexproject/iotex-core/ioctl/cmd/alias"
@@ -41,7 +43,7 @@ var xrc20TransferFromCmd = &cobra.Command{
if err != nil {
return output.PrintError(0, "cannot generate bytecode from given command"+err.Error()) // TODO: undefined error
}
- return execute(contract.String(), nil, bytecode)
+ return execute(contract.String(), big.NewInt(0), bytecode)
},
}
