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

CLI: Unknown network error when passing gateway-address in cross-msg fund command results #356

Closed
maciejwitowski opened this issue Nov 14, 2023 · 2 comments
Labels
bug Something isn't working s:ipc

Comments

@maciejwitowski
Copy link
Contributor

Running the command to send funds from the address on parent network to the address on subnet:

ipc-cli cross-msg fund \                                                                     
--from 0x203bE92E679AFc8aF781B00633b18B4F1103d16f \
--to 0x258392F3070739fa6D608cCB71ACAaa63fd42D10 \
--gateway-address 0x0341fA160C66aBB112195192aE359a6D61df45cd \
--subnet /r314159/t410fug7q7fgzeehfgr6qlubzs45z2sjzcbw3nbhpiyi \
200

results in

[2023-11-14T10:58:23Z ERROR ipc_cli] main process failed: error processing command Some(CrossMsg(CrossMsgsCommandsArgs { command: Fund(FundArgs { gateway_address: Some("0x0341fA160C66aBB112195192aE359a6D61df45cd"), from: Some("0x203bE92E679AFc8aF781B00633b18B4F1103d16f"), to: Some("0x258392F3070739fa6D608cCB71ACAaa63fd42D10"), subnet: "/r314159/t410fug7q7fgzeehfgr6qlubzs45z2sjzcbw3nbhpiyi", amount: 200.0 }) })): Unknown address network

It works when the gateway-address parameter isn't provided and this address is just taken from the config.toml

@maciejwitowski maciejwitowski added the bug Something isn't working label Nov 14, 2023
@cryptoAtwill
Copy link
Contributor

My take on this one is we should not pass Gateway as a parameter any more and should use whatever is in the config. cc @adlrocha.

@adlrocha
Copy link
Contributor

adlrocha commented Dec 4, 2023

My take on this one is we should not pass Gateway as a parameter any more and should use whatever is in the config

Yes, I agree with you. We should simplify the CLI to remove --gateway-address as a flag and leverage the config for everything.

@adlrocha adlrocha closed this as completed Dec 4, 2023
@jsoares jsoares transferred this issue from consensus-shipyard/ipc-libs Dec 19, 2023
@jsoares jsoares added the s:ipc label Dec 19, 2023
@jsoares jsoares closed this as not planned Won't fix, can't repro, duplicate, stale Mar 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working s:ipc
Projects
No open projects
Status: Done
Development

No branches or pull requests

4 participants