Skip to content
This repository has been archived by the owner on Jun 19, 2024. It is now read-only.

invalid BigNumber string #17

Open
jacobhjkim opened this issue May 23, 2022 · 0 comments
Open

invalid BigNumber string #17

jacobhjkim opened this issue May 23, 2022 · 0 comments

Comments

@jacobhjkim
Copy link

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: ''
}
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant