From 66dc1378d9160d0cede9125ff1b39fa75242ff2d Mon Sep 17 00:00:00 2001 From: maximopalopoli Date: Wed, 29 Jan 2025 12:01:30 -0300 Subject: [PATCH] Check expected errors for other failing functions --- chainio/clients/elcontracts/writer_test.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/chainio/clients/elcontracts/writer_test.go b/chainio/clients/elcontracts/writer_test.go index a0171426..485a0aee 100644 --- a/chainio/clients/elcontracts/writer_test.go +++ b/chainio/clients/elcontracts/writer_test.go @@ -273,6 +273,7 @@ func TestChainWriter(t *testing.T) { true, ) assert.Error(t, err, "cannot update operator details for an address that is not an operator") + assert.Equal(t, err.Error(), "Tx Generation(4) - Error generating tx for delegationManager.ModifyOperatorDetails: execution reverted: custom error 0x932d94f7") }) t.Run("update metadata URI", func(t *testing.T) { @@ -297,6 +298,7 @@ func TestChainWriter(t *testing.T) { true, ) assert.Error(t, err, "cannot update metadata URI for an address that is not an operator") + assert.Equal(t, err.Error(), "Tx Generation(4) - Error generating tx for delegationManager.UpdateOperatorMetadataURI: execution reverted: custom error 0x932d94f7") }) t.Run("deposit ERC20 into strategy", func(t *testing.T) {