Comments (3)
Oh interesting catch!
Sounds like we need to do some address validation before attempting to do any packet forwarding.
Perhaps just marshaling to bytes and validating the address before doing anything https://github.com/cosmos/cosmos-sdk/blob/42f8d45b686be791c6b18cbbe02b84c91da524bc/types/address.go#L133-L174
from packet-forward-middleware.
I threw together a test case inside ibctest
to verify the described issue.
https://github.com/strangelove-ventures/ibctest/blob/justin/packet-forward/examples/packet_forward_test.go
It look like the middleware works exactly as intended. When initially designing the middleware we had to decide what would happen in the case of a failure during the second hop and we settled on leaving the funds in the intermediary account. This can definitely be confusing as a user since you would initially expect the funds to be returned to the original account. iirc we decided to go this route because there was always the possibility that after a transfer fails the second hop that we could try to revert the funds back to the source chain and have that tx fail as well. This could create even more fees that need to be paid and more confusion.
Billy had opened an issue to improve this design choice #1
from packet-forward-middleware.
Closing this issue as this was confirmed to be expected behavior.
from packet-forward-middleware.
Related Issues (20)
- Hub routing idea HOT 1
- The name `router` is ambiguous given its usage in other contexts HOT 4
- v2.1.0 release module name HOT 3
- Update to v0.46 HOT 5
- Run tests in CI
- Add a simple binary for testing purposes HOT 2
- The `router` module is not an IBCMiddleware HOT 4
- Status of the project. HOT 1
- Allow native JSON on the memo field
- Migrate to ibc-go v7 HOT 1
- Routing of ibc denom not working. HOT 12
- use cometbft HOT 1
- pfm depends on an older version of itself HOT 1
- Middleware panics when transferring tokens with 10^18 denom HOT 2
- Migrate PFM to `ibc-apps` repo HOT 4
- Test packet forward middleware with SDK alpha release
- bump packet-forward-middleware to cosmos-sdk 0.45.1 HOT 2
- PFM repo should be archived and users should be pointed to `ibc-apps` repo for issues. HOT 6
- PFM hook possible fixes when used along with IBC-hook? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from packet-forward-middleware.