Skip to content

Commit

Permalink
Merge pull request #12 from hyperledger/fix/duplicate_reveal_operation
Browse files Browse the repository at this point in the history
Fix duplicate reveal operation
  • Loading branch information
nguyer authored Oct 9, 2023
2 parents 3b473e4 + 4f79cfa commit 82a3727
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/tezos/prepare_transaction.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,9 @@ func (c *tezosConnector) completeOp(ctx context.Context, op *codec.Op, fromStrin
return err
}

mayNeedReveal := len(op.Contents) > 0 && op.Contents[0].Kind() != tezos.OpTypeReveal
// add reveal if necessary
if !state.IsRevealed() {
if mayNeedReveal && !state.IsRevealed() {
key, err := c.getPubKeyFromSignatory(op.Source.String())
if err != nil {
return err
Expand Down

0 comments on commit 82a3727

Please sign in to comment.