use-ink / ink-examples

A set of examples for ink! smart contract language. Happy hacking!
https://use.ink
The Unlicense
104 stars 54 forks source link

Error: while deploy erc20 contract #16

Closed ghost closed 1 year ago

ghost commented 1 year ago

I got this error while I am deploying erc20 smart contract in swanky dev container. The compilation is successfully done but got this error in deploying

⠋ DeployingError: createType(Balance):: String should not contain decimal points or scientific notation
    at createTypeUnsafe (/opt/swanky/node_modules/@polkadot/types-create/cjs/create/type.js:54:22)
    at TypeRegistry.createType (/opt/swanky/node_modules/@polkadot/types/cjs/create/registry.js:270:52)
    at /opt/swanky/node_modules/@polkadot/api-contract/cjs/Abi/index.js:145:204
    at Array.map (<anonymous>)
    at Abi.<anonymous> (/opt/swanky/node_modules/@polkadot/api-contract/cjs/Abi/index.js:145:143)
    at Object.toU8a (/opt/swanky/node_modules/@polkadot/api-contract/cjs/Abi/index.js:118:95)
    at CodePromise.<anonymous> (/opt/swanky/node_modules/@polkadot/api-contract/cjs/base/Code.js:31:169)
    at /opt/swanky/node_modules/@polkadot/api-contract/cjs/base/Code.js:45:185
    at Object.new (/opt/swanky/node_modules/@polkadot/api-contract/cjs/base/util.js:14:51)
    at DeployApi.deploy (/opt/swanky/node_modules/@astar-network/swanky-core/dist/lib/deploy-api.js:19:44)
✖ Error Deploying