-
Notifications
You must be signed in to change notification settings - Fork 232
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(agoric-cli): Thread rpcAddresses for Cosmos publishBundle #5660
Conversation
@vejmelkam would you please try this out? @ktomascz? @anilhelvaci? |
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.
I haven't verified that it lets folks deploy to devnet, but it looks worthwhile in any case.
packages/agoric-cli/src/publish.js
Outdated
*/ | ||
const choose = array => { | ||
assert(array.length > 0); | ||
const index = Math.floor(array.length * Math.random()); |
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.
grumble... ambient authority...
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.
Fair, and I can change this such that random
is a power needed by makeBundlePublisher
.
Issue #5601 should already be mitigated by Agoric/dapp-fungible-faucet#48 on To manually validate that this PR addresses the underlying problem requires invoking When we’ve ironed out the remaining issues with |
Hi, I have tested with the
Note the POST endpoint address: "http://https//devnet.rpc.agoric.net:443" When I am testing this SDK branch with the default (main) dapp I am getting the same error as described in #5341 |
Thank you for the reproduction. I’ll look into making the code that produces the address more sophisticated, to handle both the bare address and full URL cases. |
c5f64cf
to
208925c
Compare
2df40ac
to
3ea06d4
Compare
e752371
to
44049b3
Compare
44049b3
to
908f723
Compare
closes: #5601
Description
This change fixes #5601 which manifested as a failure to connect to a remote chain when publishing a bundle. This addresses the specific problem that publishBundle did not thread the
rpcAddresses
from the connection spec down toagd
. This solution will be replaced with a system based on casting in cosmjs, with retries and feedback about installation success and failure #5460, but this addresses the problem until then.