staking-contracts
staking-contracts copied to clipboard
invalid BigNumber string
I have deployed my own polygon-edge PoS network. When I try to deploy staking smart contracts, I get this following error. What might cause this?
$ npm run deploy
> [email protected] deploy
> hardhat run scripts/deploy.ts --network polygonedge
Generating typings for: 0 artifacts in dir: types for target: ethers-v5
Successfully generated 3 typings!
Successfully generated 3 typings for external artifacts!
Deploying contracts with the account: 0xfb4d51a5E2dc6dA7a81A1c07352495e4E508DD89
Account balance: 100000000000000000000000
Error: invalid BigNumber string (argument="value", value="", code=INVALID_ARGUMENT, version=bignumber/5.5.0)
at Logger.makeError (/Users/jacobkim/Documents/web3/jacob-test/polygon-edge/staking-contracts/node_modules/@ethersproject/logger/src.ts/index.ts:225:28)
at Logger.throwError (/Users/jacobkim/Documents/web3/jacob-test/polygon-edge/staking-contracts/node_modules/@ethersproject/logger/src.ts/index.ts:237:20)
at Logger.throwArgumentError (/Users/jacobkim/Documents/web3/jacob-test/polygon-edge/staking-contracts/node_modules/@ethersproject/logger/src.ts/index.ts:241:21)
at Function.BigNumber.from (/Users/jacobkim/Documents/web3/jacob-test/polygon-edge/staking-contracts/node_modules/@ethersproject/bignumber/src.ts/bignumber.ts:240:27)
at NumberCoder.encode (/Users/jacobkim/Documents/web3/jacob-test/polygon-edge/staking-contracts/node_modules/@ethersproject/abi/src.ts/coders/number.ts:25:27)
at /Users/jacobkim/Documents/web3/jacob-test/polygon-edge/staking-contracts/node_modules/@ethersproject/abi/src.ts/coders/array.ts:71:19
at Array.forEach (<anonymous>)
at pack (/Users/jacobkim/Documents/web3/jacob-test/polygon-edge/staking-contracts/node_modules/@ethersproject/abi/src.ts/coders/array.ts:54:12)
at TupleCoder.encode (/Users/jacobkim/Documents/web3/jacob-test/polygon-edge/staking-contracts/node_modules/@ethersproject/abi/src.ts/coders/tuple.ts:54:20)
at AbiCoder.encode (/Users/jacobkim/Documents/web3/jacob-test/polygon-edge/staking-contracts/node_modules/@ethersproject/abi/src.ts/abi-coder.ts:112:15) {
reason: 'invalid BigNumber string',
code: 'INVALID_ARGUMENT',
argument: 'value',
value: ''
}