Skip to content

feat: Re-map all IBCv2 enabled contracts after state sync #2144

@kulikthebird

Description

@kulikthebird

In the ibc-go versions v9 and older the bindPort method was used to inform the IBC about a new mapping portID <-> Contract Address. A method AddRoute was used to inform IBC module about Wasm Application in order to route all messages with a proper module name prefix towards the app.

In IBC v2 the bindPort method is removed and AddRoute is used to map a specific port to a given application. This change is stored in memory and does not become a part of the bc state. In order to set the port mappings to wasm contract, wasmd needs to re-insert every IBCv2 enabled contract using AddRoute during the state sync procedure.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions