Skip to content

Commit

Permalink
update comment
Browse files Browse the repository at this point in the history
  • Loading branch information
yun-yeo committed Jun 14, 2021
1 parent 8e50abc commit 7a58527
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions x/wasm/keeper/contract.go
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ func (k Keeper) InstantiateContract(
k.getGasRemaining(ctx),
)

// add types.GasMultiplier to cause out of gas panic
// add types.GasMultiplier to occur out of gas panic
k.consumeGas(ctx, gasUsed+types.GasMultiplier, "Contract init")
if err != nil {
return nil, nil, sdkerrors.Wrap(types.ErrInstantiateFailed, err.Error())
Expand Down Expand Up @@ -230,7 +230,7 @@ func (k Keeper) ExecuteContract(
k.getGasRemaining(ctx),
)

// add types.GasMultiplier to cause out of gas panic
// add types.GasMultiplier to occur out of gas panic
k.consumeGas(ctx, gasUsed+types.GasMultiplier, "Contract Execution")
if err != nil {
return nil, sdkerrors.Wrap(types.ErrExecuteFailed, err.Error())
Expand Down Expand Up @@ -307,7 +307,7 @@ func (k Keeper) MigrateContract(
k.getGasRemaining(ctx),
)

// add types.GasMultiplier to cause out of gas panic
// add types.GasMultiplier to occur out of gas panic
k.consumeGas(ctx, gasUsed+types.GasMultiplier, "Contract Migration")
if err != nil {
return nil, sdkerrors.Wrap(types.ErrMigrationFailed, err.Error())
Expand Down Expand Up @@ -369,7 +369,7 @@ func (k Keeper) reply(
k.getGasRemaining(ctx),
)

// add types.GasMultiplier to cause out of gas panic
// add types.GasMultiplier to occur out of gas panic
k.consumeGas(ctx, gasUsed+types.GasMultiplier, "Contract Reply")
if err != nil {
return sdkerrors.Wrap(types.ErrReplyFailed, err.Error())
Expand Down Expand Up @@ -430,7 +430,7 @@ func (k Keeper) queryToContract(ctx sdk.Context, contractAddress sdk.AccAddress,
k.getGasRemaining(ctx),
)

// add types.GasMultiplier to cause out of gas panic
// add types.GasMultiplier to occur out of gas panic
k.consumeGas(ctx, gasUsed+types.GasMultiplier, "Contract Query")
if err != nil {
return nil, sdkerrors.Wrap(types.ErrContractQueryFailed, err.Error())
Expand Down

0 comments on commit 7a58527

Please sign in to comment.