Closed litterGuy closed 5 years ago
Sry, i lost the paramter "Fee".But add this paramter got new error:
Error: unsupported value: 2000000 at Function.from (/home/xrp/node_modules/ripple-binary-codec/distrib/npm/types/amount.js:93:13) at /home/xrp/node_modules/ripple-binary-codec/distrib/npm/types/st-object.js:31:46 at /home/xrp/node_modules/lodash/lodash.js:13807:16 at /home/xrp/node_modules/lodash/lodash.js:4911:15 at baseForOwn (/home/xrp/node_modules/lodash/lodash.js:2996:24) at Function.transform (/home/xrp/node_modules/lodash/lodash.js:13806:43) at Function.from (/home/xrp/node_modules/ripple-binary-codec/distrib/npm/types/st-object.js:28:18) at serializeObject (/home/xrp/node_modules/ripple-binary-codec/distrib/npm/binary.js:23:18) at signingData (/home/xrp/node_modules/ripple-binary-codec/distrib/npm/binary.js:31:10) at Object.encodeForSigning (/home/xrp/node_modules/ripple-binary-codec/distrib/npm/index.js:40:21)
Emmmmmmm..... I set Amount and Fee to string, and got the right result.
Use code like that:
But got the following error
How can I solve this problem?