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

MemDB for testing failed #408

Closed
DongLieu opened this issue Mar 15, 2023 · 2 comments
Closed

MemDB for testing failed #408

DongLieu opened this issue Mar 15, 2023 · 2 comments

Comments

@DongLieu
Copy link

#405
I have an Interator Interface problem.

Currently, Wasmvm's KVStore and Cosmos-SDK's KVStore differ in the Iterator interface.

Specifically in the main SDK branch:
Iterator(start, end []byte) (Iterator, error)
with Iterator = dbm.Iterator (dbm “github.com/cosmos/cosmos-db”)

For SDK branch using cometbft:
Iterator(start, end []byte) Iterator
with Iterator = dbm.Iterator (dbm “github.com/cometbft/cometbft-db”)

Wasmvm:
Iterator(start, end []byte) Iterator
with 'Iterator = types.Iterator' ("github.com/CosmWasm/wasmvm/types")

This leads to Interator incompatibility.
image

@webmaster128
Copy link
Member

Hey @DongLieu! Do I understand correctly you use wasmvm but not wasmd? Could you have a look at that diff in wasmd for the integration? https://github.com/CosmWasm/wasmd/pull/1245/files Can you do something similar in your project?

@DongLieu
Copy link
Author

DongLieu commented Mar 16, 2023

ok, thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants