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

InvalidPathname error for IBC recipient in splitter instantiate. #724

Closed
SlayerAnsh opened this issue Dec 16, 2024 · 0 comments · Fixed by #725
Closed

InvalidPathname error for IBC recipient in splitter instantiate. #724

SlayerAnsh opened this issue Dec 16, 2024 · 0 comments · Fixed by #725
Assignees
Labels
bug Something isn't working ibc

Comments

@SlayerAnsh
Copy link
Contributor

Describe the bug
Seems like VFS cross chain address with ibc:// protocol is failing for splitter instantiate with cross chain recipient.

Error Code

Query failed with (6): rpc error: code = Unknown desc = failed to execute message; message index: 0: dispatch: submessages: reply: Generic error: Invalid Pathname, Some("\"ibc://andromeda/home/andr13qy7w6n6c0gqhc0506vpwd0yma0fzejctwz4qd\" does not exist in the file system"): instantiate wasm contract failed: execute wasm contract failed [CosmWasm/wasmd/x/wasm/keeper/keeper.go:662] with gas used: '776425': unknown request

To Reproduce
Steps to reproduce the behavior:

  1. Choose any chain
  2. Create splitter and add two recipient
  3. Add a cross chain address with `ibc:///home/ to one of the recipient
  4. Instantiate and check error

Expected behavior
Splitter should be able to instantiate and fund should be transferred properly to cross chain recipient.

Screenshots
NA

Environment (please complete the following information):

  • IBC Devnet chains

Additional context
Seems like the issue might be due to check found in resolve path code for VFS.

 // As cross-chain queries are not currently possible we need to ensure the pathname being resolved is local
    ensure!(
        pathname.get_protocol().is_none(),
        ContractError::InvalidPathname {
            error: Some("Cannot resolve paths with protocols at this time".to_string())
        }
     )

CW-ORCH tests is also using splitter but didn't catch this error, this should also be checked and new test added to cover these edge cases

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working ibc
Projects
None yet
2 participants