From cc93eb12421c054a0740f4a3f5b3509b4b012fd2 Mon Sep 17 00:00:00 2001 From: olegfomenko2002 Date: Thu, 14 Dec 2023 10:48:22 +0200 Subject: [PATCH] Fix: SignedTransitRoot arguments parsing --- internal/services/relayer/main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/services/relayer/main.go b/internal/services/relayer/main.go index f972feb..b9d70c6 100644 --- a/internal/services/relayer/main.go +++ b/internal/services/relayer/main.go @@ -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)