Skip to content

Commit

Permalink
More regex fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
miohtama committed Mar 20, 2024
1 parent fdedb3f commit eb79af2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
- Make it possible to deploy in-house contracts without installing Enzyme toolchain:
node.js, hardhat and node-gyp were un-co-operative. Instead, now we just flatten out Enzyme sol
files and store them in the source tree as copies.
- Improved error messages for `GuardV0`

# 0.25.3

Expand Down
4 changes: 2 additions & 2 deletions tests/guard/test_guard_simple_vault_uniswap_v3.py
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ def test_guard_third_party_trade(
)
)

with pytest.raises(TransactionFailed, match="execution reverted: Sender not allowed"):
with pytest.raises(TransactionFailed, match="Sender not allowed"):
target, call_data = encode_simple_vault_transaction(trade_call)
vault.functions.performCall(target, call_data).transact({"from": third_party})

Expand Down Expand Up @@ -325,7 +325,7 @@ def test_guard_pair_not_approved(
)
)

with pytest.raises(TransactionFailed, match="execution reverted: Token not allowed"):
with pytest.raises(TransactionFailed, match="Token not allowed"):
target, call_data = encode_simple_vault_transaction(trade_call)
vault.functions.performCall(target, call_data).transact({"from": asset_manager})

Expand Down

0 comments on commit eb79af2

Please sign in to comment.