Skip to content

Commit 59080e0

Browse files
committed
linting
1 parent c91400c commit 59080e0

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

x/gnovm/keeper/msg_server_add_package.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ func (k msgServer) AddPackage(ctx context.Context, msg *types.MsgAddPackage) (*t
5656

5757
err = errorsmod.Wrap(sdkerrors.ErrOutOfGas, log)
5858
default:
59-
err = fmt.Errorf("panic while calling VM: %v", r)
59+
err = fmt.Errorf("panic while calling VM: %v (%v)", r, rType)
6060
}
6161
} else {
6262
// this commits the changes to the module store (that is only committed later)

x/gnovm/keeper/msg_server_run.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ func (k msgServer) Run(ctx context.Context, msg *types.MsgRun) (*types.MsgRunRes
4848

4949
err = errorsmod.Wrap(sdkerrors.ErrOutOfGas, log)
5050
default:
51-
err = fmt.Errorf("panic while calling VM: %v", r)
51+
err = fmt.Errorf("panic while calling VM: %v (%v)", r, rType)
5252
}
5353
} else {
5454
// this commits the changes to the module store (that is only committed later)

x/gnovm/keeper/msg_server_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,6 @@ func TestMsgCall_Transfer(t *testing.T) {
332332
send, _ = sdk.ParseCoinsNormalized("2000stake")
333333

334334
maxDeposit, _ = sdk.ParseCoinsNormalized("0stake") // no storage deposit
335-
deposit, _ = sdk.ParseCoinsNormalized("0stake") // no storage deposit
336335
// Expected SendCoins for the send parameter
337336
f.bankKeeper.EXPECT().SendCoins(f.ctx, creatorBytes, pkgAddr, send)
338337
// Expected SendCoins for the transfer realm

0 commit comments

Comments
 (0)