Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: invalid hexlify value #1

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

vivianjeng
Copy link

The gas in decimal would not be valid in some case

/Users/zhengyawen/Documents/GitHub/Unirep/node_modules/solc/soljson.js:133
    process["on"]("unhandledRejection", function (reason) { throw reason; });
                                                            ^

Error: invalid hexlify value (argument="value", value="10000000000000000", code=INVALID_ARGUMENT, version=bytes/5.7.0)
    at Logger.makeError (/Users/zhengyawen/Documents/GitHub/Unirep/node_modules/@ethersproject/logger/lib/index.js:238:21)
    at Logger.throwError (/Users/zhengyawen/Documents/GitHub/Unirep/node_modules/@ethersproject/logger/lib/index.js:247:20)
    at Logger.throwArgumentError (/Users/zhengyawen/Documents/GitHub/Unirep/node_modules/@ethersproject/logger/lib/index.js:250:21)
    at hexlify (/Users/zhengyawen/Documents/GitHub/Unirep/node_modules/@ethersproject/bytes/lib/index.js:200:19)
    at /Users/zhengyawen/Documents/GitHub/Unirep/node_modules/@ethersproject/transactions/lib/index.js:181:59
    at Array.forEach (<anonymous>)
    at _serialize (/Users/zhengyawen/Documents/GitHub/Unirep/node_modules/@ethersproject/transactions/lib/index.js:175:23)
    at serialize (/Users/zhengyawen/Documents/GitHub/Unirep/node_modules/@ethersproject/transactions/lib/index.js:246:16)
    at /Users/zhengyawen/Documents/GitHub/Unirep/node_modules/@ethersproject/wallet/lib/index.js:163:116
    at processTicksAndRejections (node:internal/process/task_queues:96:5) {
  reason: 'invalid hexlify value',
  code: 'INVALID_ARGUMENT',
  argument: 'value',
  value: '10000000000000000'
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant