From c732336923d9de159b45a4e599651a0750f51f27 Mon Sep 17 00:00:00 2001 From: VolodymyrBg Date: Fri, 26 Sep 2025 10:00:30 +0300 Subject: [PATCH] signer/core: fix TestSignTx to decode res2 --- signer/core/api_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/signer/core/api_test.go b/signer/core/api_test.go index 69229dadaf..4447a9b21f 100644 --- a/signer/core/api_test.go +++ b/signer/core/api_test.go @@ -310,11 +310,11 @@ func TestSignTx(t *testing.T) { t.Fatal(err) } parsedTx2 := &types.Transaction{} - rlp.DecodeBytes(res.Raw, parsedTx2) + rlp.DecodeBytes(res2.Raw, parsedTx2) //The tx should be modified by the UI - if parsedTx2.Value().Cmp(tx.Value.ToInt()) != 0 { - t.Errorf("Expected value to be unchanged, got %v", parsedTx.Value()) + if parsedTx2.Value().Cmp(tx.Value.ToInt()) == 0 { + t.Errorf("Expected value to be changed, got %v", parsedTx2.Value()) } if bytes.Equal(res.Raw, res2.Raw) { t.Error("Expected tx to be modified by UI")