Skip to content

Commit

Permalink
Merge pull request #1092 from scrtlabs/lior-fix-possible-null-dref
Browse files Browse the repository at this point in the history
Fix possible null-dref
  • Loading branch information
assafmo authored Aug 24, 2022
2 parents f62a4f1 + 5c20c7b commit 6fa4d35
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions x/compute/internal/keeper/keeper.go
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,10 @@ func (k Keeper) GetSignerInfo(ctx sdk.Context, signer sdk.AccAddress) ([]byte, s
}

signatures, err := protobufTx.GetSignaturesV2()
if err != nil {
return nil, 0, nil, nil, nil, sdkerrors.Wrap(types.ErrSigFailed, fmt.Sprintf("Unable to get signatures v2: %s", err.Error()))
}

var signMode sdktxsigning.SignMode
switch signData := signatures[pkIndex].Data.(type) {
case *sdktxsigning.SingleSignatureData:
Expand Down

0 comments on commit 6fa4d35

Please sign in to comment.