fix: remove yq and fix wrong ciphernode addresses in CRISP example#998
fix: remove yq and fix wrong ciphernode addresses in CRISP example#998philogicae wants to merge 1 commit into
Conversation
|
@philogicae is attempting to deploy a commit to the Gnosis Guild Team on Vercel. A member of the Team first needs to authorize it. |
WalkthroughModified parsing logic in Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes
Possibly related PRs
Suggested labels
Suggested reviewers
Poem
Pre-merge checks and finishing touches✅ Passed checks (3 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
🧰 Additional context used🧠 Learnings (3)📓 Common learnings📚 Learning: 2024-09-26T04:12:09.345ZApplied to files:
📚 Learning: 2024-10-23T01:59:27.215ZApplied to files:
🔇 Additional comments (1)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
hey @philogicae tysm for your contribution - can you just expand on this?
|
|
Since today's rebase, this PR seems already deprecated (needed for branch: main-backup?), so it can be closed. Hardhat error I mentionned: [DEPLOY] > @enclave/main@0.1.5 ciphernode:add /workspace/project
[DEPLOY] > cd packages/enclave-contracts && pnpm ciphernode:add --ciphernode-address '"0xbDA5747bFD65F08deb54cb465eB87D40e51B197E"' --network localhost
[DEPLOY]
[DEPLOY]
[DEPLOY] > @enclave-e3/contracts@0.1.5 ciphernode:add /workspace/project/packages/enclave-contracts
[DEPLOY] > hardhat ciphernode:add --ciphernode-address '"0xbDA5747bFD65F08deb54cb465eB87D40e51B197E"' --network localhost
[DEPLOY]
[DEPLOY] Compiling e3-greco-generator v0.1.0 (https://github.com/gnosisguild/greco#77ef983e)
[DEPLOY] Blocking waiting for file lock on build directory
[DEPLOY] Compiling e3-bfv-helpers v0.1.5 (/workspace/project/crates/bfv-helpers)
[DEPLOY] Compiling e3-user-program v0.1.0 (/workspace/project/examples/CRISP/program)
[ANVIL] eth_accounts
[ANVIL] eth_chainId
[DEPLOY] Error HHE20000 in plugin hardhat-ethers: Method "HardhatEthersProvider.resolveName" is not implemented
[DEPLOY]
[DEPLOY] For more info go to https://hardhat.org/HHE20000 or run Hardhat with --show-stack-traces
[DEPLOY] ELIFECYCLE Command failed with exit code 1.Current code / latest fix is fine, if keeping root@1f61251dde16:/workspace/project/examples/CRISP# cat ./enclave.config.yaml | yq '.nodes.cn1.address'
"0x70997970C51812dc3A010C7d01b50e0d17dc79C8" # Extra double quotes issue
root@1f61251dde16:/workspace/project/examples/CRISP# cat ./enclave.config.yaml | yq -r '.nodes.cn1.address'
0x70997970C51812dc3A010C7d01b50e0d17dc79C8 # All good |
I think this is still valuable for current main branch, thx for the explanations! |
- Removed yq dependency by using grep and sed for extracting node addresses - Maintains same functionality while reducing external tool dependencies
Same change than here #711 but for CRISP example.
Also, using yq, ciphernode addresses were wrongly parsed, including extra double quotes, raising a Hardhat error.
Summary by CodeRabbit