Comments (6)
Hey! While exploring the PFM, also noticed that the ModuleName has a typo packetfowardmiddleware -> packetforwardmiddleware, would be nice to be renamed if it's an easy fix
Yes, we realized this after the first release of the middleware unfortunately, so it was already adopted with the typo by some chains. To prevent migrations, we decided to live with the typo.
from ibc-apps.
Hey! While exploring the PFM, also noticed that the ModuleName has a typo packetfowardmiddleware
-> packetforwardmiddleware
, would be nice to be renamed if it's an easy fix
from ibc-apps.
yeah, I noticed that too, but thought I'd ignore it to avoid having to migrate the params to the new key.
from ibc-apps.
At the moment, if the param is not set (i.e.: set to
""
) txs with forwarding will fail since https://github.com/cosmos/ibc-apps/blob/main/middleware/packet-forward-middleware/router/keeper/keeper.go#L214 can't convert it to a Dec.Adding sensible defaults should be an easy fix
I took a look at this and it seemed like we are using a default value of 0 and also doing some validation to ensure that the param value can be type coerced into the sdk.Dec
type properly see
Is there something i'm overlooking here?
from ibc-apps.
That looks good to me to right now. I can't remember the details here, but I think it was happening for us on a testnet when the parameter was not set on genesis or set to "". IIRC the validation occurs when setting the param, but if it never was initialized, it would somehow get ""
from ibc-apps.
Thanks that bit of context actually helped me find what I think the issue could be then.
In module.go we are not calling ValidateGenesis
in the InitGenesis
call. I'll get a PR opened right now
from ibc-apps.
Related Issues (20)
- The name router is ambiguous given its usage in other contexts
- All: label scheme to track issues separately from other sub repos
- async-icq demo controller chain implementation should live in this repo
- ibc-hooks doesn't always return ack,err when it should
- Make router.getReceiver public HOT 2
- Update integration docs HOT 4
- `polytone` should be imported to `ibc-apps` repo. HOT 1
- Update async-icq to ibc-go/v8 HOT 1
- question(ibc-hooks): incentives to relay wasm hooks HOT 1
- (Bug?) ResponseQuery Data changed from Value to Key HOT 4
- test: PFM test case for CI job `ictest-forward` is failing on main HOT 3
- Remove gogoproto replace statements for v8 HOT 3
- Consider updating PFM references
- add broken link check CI HOT 2
- backport: link lint & spell checking for all branches
- doc: IBC Hooks counter smart contract README contains misleading explanation HOT 1
- adding & importing ibc-rate-limit cleanup
- chore: remove `IBCMiddleware.refundTimeout` as it is no longer used HOT 2
- middleware: staking
- packet-forwarding-middleware: Add memo field to the `ForwardMetadata` struct to preserve memo during hop.
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 ibc-apps.