Skip to content

Commit

Permalink
Fix: SignedTransitRoot arguments parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
olegfomenko committed Dec 14, 2023
1 parent 652155c commit cc93eb1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/services/relayer/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,8 @@ func (c *Service) processIdentityStateTransfer(ctx context.Context, chain *confi
return "", errors.Wrap(err, "failed to create contract instance")
}

prevRoot, _ := new(big.Int).SetString(details.Operation.PrevState, 10)
root, _ := new(big.Int).SetString(details.Operation.State, 10)
prevRoot := new(big.Int).SetBytes(hexutil.MustDecode(details.Operation.PrevState))
root := new(big.Int).SetBytes(hexutil.MustDecode(details.Operation.State))
timestamp, _ := new(big.Int).SetString(details.Operation.Timestamp, 10)

tx, err := contract.SignedTransitRoot(opts, prevRoot, root, timestamp, details.Proof)
Expand Down

0 comments on commit cc93eb1

Please sign in to comment.