Skip to content

Commit

Permalink
Fix: use local wasm module types instead of including wasmvm repo as …
Browse files Browse the repository at this point in the history
…a dependency.
  • Loading branch information
Maxim committed Jan 25, 2022
1 parent b006963 commit aa3a342
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 157 deletions.
5 changes: 2 additions & 3 deletions chain/client/context.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ import (
oracle "github.com/InjectiveLabs/sdk-go/chain/oracle/types"
peggy "github.com/InjectiveLabs/sdk-go/chain/peggy/types"
chaintypes "github.com/InjectiveLabs/sdk-go/chain/types"
wasmtypes "github.com/InjectiveLabs/sdk-go/wasm/types"

wasmtypes "github.com/CosmWasm/wasmd/x/wasm/types"
cosmostypes "github.com/cosmos/cosmos-sdk/types"
signingtypes "github.com/cosmos/cosmos-sdk/types/tx/signing"
authtypes "github.com/cosmos/cosmos-sdk/x/auth/types"
Expand Down Expand Up @@ -115,7 +115,6 @@ func NewClientContext(
upgradetypes.RegisterInterfaces(interfaceRegistry)
wasmtypes.RegisterInterfaces(interfaceRegistry)


marshaler := codec.NewProtoCodec(interfaceRegistry)
encodingConfig := EncodingConfig{
InterfaceRegistry: interfaceRegistry,
Expand Down Expand Up @@ -166,7 +165,7 @@ func newContext(
encodingConfig EncodingConfig,
kb keyring.Keyring,
keyInfo keyring.Info,

) client.Context {
clientCtx := client.Context{
ChainID: chainId,
Expand Down
75 changes: 0 additions & 75 deletions chain/exchange/types/expected_keepers.go

This file was deleted.

3 changes: 0 additions & 3 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ module github.com/InjectiveLabs/sdk-go
go 1.16

require (
github.com/CosmWasm/wasmd v0.0.0-00010101000000-000000000000
github.com/allegro/bigcache v1.2.1 // indirect
github.com/aristanetworks/goarista v0.0.0-20201012165903-2cb20defcd66 // indirect
github.com/bandprotocol/bandchain-packet v0.0.2
Expand Down Expand Up @@ -47,5 +46,3 @@ replace github.com/gogo/protobuf => github.com/regen-network/protobuf v1.3.3-alp
replace google.golang.org/grpc => google.golang.org/grpc v1.33.2

replace github.com/btcsuite/btcutil => github.com/btcsuite/btcutil v1.0.2

replace github.com/CosmWasm/wasmd => github.com/cosmoscontracts/wasmd v1.0.0-juno6
Loading

0 comments on commit aa3a342

Please sign in to comment.