Skip to content

Commit

Permalink
Check expected errors for other failing functions
Browse files Browse the repository at this point in the history
  • Loading branch information
maximopalopoli committed Jan 29, 2025
1 parent e260bb9 commit 66dc137
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions chainio/clients/elcontracts/writer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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) {
Expand Down

0 comments on commit 66dc137

Please sign in to comment.