diff --git a/contracts/test/ERC20toCW20PointerTest.js b/contracts/test/ERC20toCW20PointerTest.js index aca3b48dd..f19884e13 100644 --- a/contracts/test/ERC20toCW20PointerTest.js +++ b/contracts/test/ERC20toCW20PointerTest.js @@ -86,7 +86,7 @@ describe("ERC20 to CW20 Pointer", function () { }); describe("transfer()", function () { - it.only("should transfer", async function () { + it("should transfer", async function () { let sender = accounts[0]; let recipient = accounts[1]; diff --git a/go.mod b/go.mod index 9288ff948..1c16b715e 100644 --- a/go.mod +++ b/go.mod @@ -344,7 +344,7 @@ require ( ) replace ( - github.com/CosmWasm/wasmd => github.com/sei-protocol/sei-wasmd v0.2.4 + github.com/CosmWasm/wasmd => github.com/sei-protocol/sei-wasmd v0.2.5-0.20241030192608-020d4a9bb21c github.com/confio/ics23/go => github.com/cosmos/cosmos-sdk/ics23/go v0.8.0 github.com/cosmos/cosmos-sdk => github.com/sei-protocol/sei-cosmos v0.3.41 github.com/cosmos/iavl => github.com/sei-protocol/sei-iavl v0.2.0 diff --git a/go.sum b/go.sum index 83baf47cc..a2afd15f5 100644 --- a/go.sum +++ b/go.sum @@ -1359,8 +1359,8 @@ github.com/sei-protocol/sei-tendermint v0.3.9-0.20240926181940-e9348a908b27 h1:I github.com/sei-protocol/sei-tendermint v0.3.9-0.20240926181940-e9348a908b27/go.mod h1:4LSlJdhl3nf3OmohliwRNUFLOB1XWlrmSodrIP7fLh4= github.com/sei-protocol/sei-tm-db v0.0.5 h1:3WONKdSXEqdZZeLuWYfK5hP37TJpfaUa13vAyAlvaQY= github.com/sei-protocol/sei-tm-db v0.0.5/go.mod h1:Cpa6rGyczgthq7/0pI31jys2Fw0Nfrc+/jKdP1prVqY= -github.com/sei-protocol/sei-wasmd v0.2.4 h1:W++xiJ1P57BhBW8TGk8vfPRJlWXr1vp2kQCvSc8Qpaw= -github.com/sei-protocol/sei-wasmd v0.2.4/go.mod h1:fKHnK3Nms+BZeGvXeIC3SEzUDfkB7/tYOf95kVOhiO4= +github.com/sei-protocol/sei-wasmd v0.2.5-0.20241030192608-020d4a9bb21c h1:byFrp4tO+F6OOnqTVWDCp0DhkFo5/Q+BJumNpnrUAus= +github.com/sei-protocol/sei-wasmd v0.2.5-0.20241030192608-020d4a9bb21c/go.mod h1:fKHnK3Nms+BZeGvXeIC3SEzUDfkB7/tYOf95kVOhiO4= github.com/sei-protocol/tm-db v0.0.4 h1:7Y4EU62Xzzg6wKAHEotm7SXQR0aPLcGhKHkh3qd0tnk= github.com/sei-protocol/tm-db v0.0.4/go.mod h1:PWsIWOTwdwC7Ow/GUvx8HgUJTO691pBuorIQD8JvwAs= github.com/sergi/go-diff v1.1.0/go.mod h1:STckp+ISIX8hZLjrqAeVduY0gWCT9IjLuqbuNXdaHfM= diff --git a/precompiles/common/expected_keepers.go b/precompiles/common/expected_keepers.go index bb98ffbef..9af239382 100644 --- a/precompiles/common/expected_keepers.go +++ b/precompiles/common/expected_keepers.go @@ -79,7 +79,7 @@ type WasmdKeeper interface { } type WasmdViewKeeper interface { - QuerySmart(ctx sdk.Context, contractAddr sdk.AccAddress, req []byte) ([]byte, error) + QuerySmartSafe(ctx sdk.Context, contractAddr sdk.AccAddress, req []byte) ([]byte, error) } type StakingKeeper interface { diff --git a/precompiles/pointer/pointer.go b/precompiles/pointer/pointer.go index 6d1502cd1..1f3c1ade8 100644 --- a/precompiles/pointer/pointer.go +++ b/precompiles/pointer/pointer.go @@ -134,7 +134,7 @@ func (p PrecompileExecutor) AddCW20(ctx sdk.Context, method *ethabi.Method, call if err != nil { return nil, 0, err } - res, err := p.wasmdKeeper.QuerySmart(ctx, cwAddress, []byte("{\"token_info\":{}}")) + res, err := p.wasmdKeeper.QuerySmartSafe(ctx, cwAddress, []byte("{\"token_info\":{}}")) if err != nil { return nil, 0, err } @@ -165,7 +165,7 @@ func (p PrecompileExecutor) AddCW721(ctx sdk.Context, method *ethabi.Method, cal if err != nil { return nil, 0, err } - res, err := p.wasmdKeeper.QuerySmart(ctx, cwAddress, []byte("{\"contract_info\":{}}")) + res, err := p.wasmdKeeper.QuerySmartSafe(ctx, cwAddress, []byte("{\"contract_info\":{}}")) if err != nil { return nil, 0, err } diff --git a/precompiles/wasmd/wasmd.go b/precompiles/wasmd/wasmd.go index a01b9d56c..5e48cd9a1 100644 --- a/precompiles/wasmd/wasmd.go +++ b/precompiles/wasmd/wasmd.go @@ -448,8 +448,7 @@ func (p PrecompileExecutor) query(ctx sdk.Context, method *abi.Method, args []in rerr = err return } - - res, err := p.wasmdViewKeeper.QuerySmart(ctx, contractAddr, req) + res, err := p.wasmdViewKeeper.QuerySmartSafe(ctx, contractAddr, req) if err != nil { rerr = err return