Skip to content

Commit

Permalink
fix merge error
Browse files Browse the repository at this point in the history
  • Loading branch information
ylsGit committed Jul 28, 2023
1 parent e8bacfb commit 63e8113
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions x/wasm/keeper/keeper.go
Original file line number Diff line number Diff line change
Expand Up @@ -529,17 +529,13 @@ func (k Keeper) instantiate(ctx sdk.Context, codeID uint64, creator, admin, cont
env := types.NewEnv(ctx, contractAddress)
adapters := sdk.CoinsToCoinAdapters(deposit)
info := types.NewInfo(creator, adapters)
cosmwasmAPI := wasmvm.GoAPI{
HumanAddress: humanAddress,
CanonicalAddress: canonicalAddress,
Contract: contractExternal(ctx, k),
}
gasInfo := types.GetGasInfo(k.gasRegister.GetGasMultiplier())
cosmwasmAPI := wasmvm.GoAPI{
HumanAddress: humanAddress,
CanonicalAddress: canonicalAddress,
GetCallInfo: getCallerInfoFunc(ctx, k),
TransferCoins: transferCoinsFunc(ctx, k),
Contract: contractExternal(ctx, k),
}

// create prefixed data store
Expand Down Expand Up @@ -620,17 +616,13 @@ func (k Keeper) execute(ctx sdk.Context, contractAddress sdk.WasmAddress, caller
env := types.NewEnv(ctx, contractAddress)
adapters := sdk.CoinsToCoinAdapters(coins)
info := types.NewInfo(caller, adapters)
cosmwasmAPI := wasmvm.GoAPI{
HumanAddress: humanAddress,
CanonicalAddress: canonicalAddress,
Contract: contractExternal(ctx, k),
}
gasInfo := types.GetGasInfo(k.gasRegister.GetGasMultiplier())
cosmwasmAPI := wasmvm.GoAPI{
HumanAddress: humanAddress,
CanonicalAddress: canonicalAddress,
GetCallInfo: getCallerInfoFunc(ctx, k),
TransferCoins: transferCoinsFunc(ctx, k),
Contract: contractExternal(ctx, k),
}

// prepare querier
Expand Down

0 comments on commit 63e8113

Please sign in to comment.