-
Notifications
You must be signed in to change notification settings - Fork 526
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
DaoSign Milestone 3 delivery #1227
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the delivery @ramilexe I started my evaluation, please see the document to look at the errors I'm getting, I'm having issues due to the .env file. The .env sample in the readme is different from the actual .env.sample file. Which one should I be copying? (neither work because there is no actual network info). Also, what should I be entering for POLKADOT_CONTRACT_ADDRESS=<Polkadot contract address>
I'm not sure how this would be used since Polkadot relay chain doesn't run smart contracts.
I would think the .env example should provide some RPC nodes to connect to? Should I be running the backend while running the tests?
pinging @ramilexe |
Hi @semuelle @keeganquigley |
Thanks @ramilexe much appreciated, thanks for the fixes. All the unit tests are passing now, which is great. But for some reason when I try to run the Docker build, it fails with this error: ubuntu@ip-172-31-27-130:~/relayer$ docker run --env-file .env daosign-relayer
yarn run v1.22.22
$ npm exec node ./dist/index.js
/app/node_modules/ethers/lib.commonjs/utils/errors.js:149
throw makeError(message, code, info);
^
TypeError: invalid BytesLike value (argument="value", value="0x7gd435f1321b8043d984d95776cf53f570f2e296f86a8b0c9ddbd7c537cee7b3", code=INVALID_ARGUMENT, version=6.13.4)
at makeError (/app/node_modules/ethers/lib.commonjs/utils/errors.js:122:21)
at assert (/app/node_modules/ethers/lib.commonjs/utils/errors.js:149:15)
at assertArgument (/app/node_modules/ethers/lib.commonjs/utils/errors.js:161:5)
at _getBytes (/app/node_modules/ethers/lib.commonjs/utils/data.js:27:36)
at getBytes (/app/node_modules/ethers/lib.commonjs/utils/data.js:37:12)
at dataLength (/app/node_modules/ethers/lib.commonjs/utils/data.js:108:12)
at new SigningKey (/app/node_modules/ethers/lib.commonjs/crypto/signing-key.js:22:66)
at new Wallet (/app/node_modules/ethers/lib.commonjs/wallet/wallet.js:33:56)
at new EthereumProofProvider (/app/dist/services/proof_provider/ethereum.js:28:24)
at Object.<anonymous> (/app/dist/controllers/proof.js:24:5) {
code: 'INVALID_ARGUMENT',
argument: 'value',
value: '0x7gd435f1321b8043d984d95776cf53f570f2e296f86a8b0c9ddbd7c537cee7b3',
shortMessage: 'invalid BytesLike value'
}
Node.js v18.20.5
error Command failed with exit code 1. Additionally, the alternative method ubuntu@ip-172-31-27-130:~/relayer$ npm start
> [email protected] start
> npm exec node ./dist/index.js
node:internal/modules/cjs/loader:1143
throw err;
^
Error: Cannot find module '/home/ubuntu/relayer/dist/index.js'
at Module._resolveFilename (node:internal/modules/cjs/loader:1140:15)
at Module._load (node:internal/modules/cjs/loader:981:27)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:128:12)
at node:internal/main/run_main_module:28:49 {
code: 'MODULE_NOT_FOUND',
requireStack: []
}
Node.js v18.20.5 I made sure my node version is using I'll try testing locally on my Mac too. |
Hi @keeganquigley Here is command:
or
|
Milestone Delivery Checklist
Link to the application pull request: w3f/Grants-Program#1770