From 484f2f36fe122d6ea54fa869b42df1aa0e700ba6 Mon Sep 17 00:00:00 2001 From: Rens Rooimans <github@rensrooimans.nl> Date: Tue, 6 Aug 2024 10:56:58 +0200 Subject: [PATCH] check approval --- contracts/gas-snapshots/ccip.gas-snapshot | 4 ++-- contracts/src/v0.8/ccip/test/legacy/TokenPoolAndProxy.t.sol | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/contracts/gas-snapshots/ccip.gas-snapshot b/contracts/gas-snapshots/ccip.gas-snapshot index edfb0f9434..df231985a1 100644 --- a/contracts/gas-snapshots/ccip.gas-snapshot +++ b/contracts/gas-snapshots/ccip.gas-snapshot @@ -883,8 +883,8 @@ TokenAdminRegistry_setPool:test_setPool_Success() (gas: 35943) TokenAdminRegistry_setPool:test_setPool_ZeroAddressRemovesPool_Success() (gas: 30617) TokenAdminRegistry_transferAdminRole:test_transferAdminRole_OnlyAdministrator_Revert() (gas: 18043) TokenAdminRegistry_transferAdminRole:test_transferAdminRole_Success() (gas: 49390) -TokenPoolAndProxy:test_lockOrBurn_burnMint_Success() (gas: 6136742) -TokenPoolAndProxy:test_lockOrBurn_lockRelease_Success() (gas: 6404463) +TokenPoolAndProxy:test_lockOrBurn_burnMint_Success() (gas: 6139245) +TokenPoolAndProxy:test_lockOrBurn_lockRelease_Success() (gas: 6406966) TokenPoolAndProxyMigration:test_tokenPoolMigration_Success_1_2() (gas: 6984900) TokenPoolAndProxyMigration:test_tokenPoolMigration_Success_1_4() (gas: 7168991) TokenPoolWithAllowList_applyAllowListUpdates:test_AllowListNotEnabled_Revert() (gas: 2209837) diff --git a/contracts/src/v0.8/ccip/test/legacy/TokenPoolAndProxy.t.sol b/contracts/src/v0.8/ccip/test/legacy/TokenPoolAndProxy.t.sol index d2960fc3bb..a7e6083825 100644 --- a/contracts/src/v0.8/ccip/test/legacy/TokenPoolAndProxy.t.sol +++ b/contracts/src/v0.8/ccip/test/legacy/TokenPoolAndProxy.t.sol @@ -480,6 +480,9 @@ contract TokenPoolAndProxy is EVM2EVMOnRampSetup { vm.expectEmit(address(s_legacyPool)); emit Minted(address(s_pool), address(s_pool), amount); + vm.expectEmit(address(s_token)); + emit IERC20.Approval(address(s_pool), address(s_fakeOffRamp), amount); + s_pool.releaseOrMint( Pool.ReleaseOrMintInV1({ receiver: OWNER,