Skip to content

Commit

Permalink
reinteroduce the modifiers since they are needed after all
Browse files Browse the repository at this point in the history
  • Loading branch information
Foivos committed Feb 21, 2024
1 parent dbc605d commit b1c9266
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion contracts/InterchainTokenService.sol
Original file line number Diff line number Diff line change
Expand Up @@ -656,7 +656,7 @@ contract InterchainTokenService is
bytes calldata payload,
string calldata symbol,
uint256 amount
) public view virtual returns (address, uint256) {
) public view virtual onlyRemoteService(sourceChain, sourceAddress) whenNotPaused returns (address, uint256) {
_checkPayloadAgainstGatewayData(payload, symbol, amount);
return _contractCallValue(payload);
}
Expand Down
5 changes: 3 additions & 2 deletions test/UtilsTest.js
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,8 @@ describe('Create3Deployer', () => {
await expect(deployer.deploy(bytecode, salt)).to.emit(deployer, 'Deployed').withArgs(address);
});

if (isHardhat) {
// Reintroduce this test if we know the address of the deployer.
/* if (isHardhat) {
it('should deploy to the predicted address with a know salt', async () => {
const salt = '0x4943fe1231449cc1baa660716a0cb38ff09af0b2c9acb63d40d9a7ba06d33d21';
Expand All @@ -359,7 +360,7 @@ describe('Create3Deployer', () => {
await expect(deployer.deploy(bytecode, salt)).to.emit(deployer, 'Deployed').withArgs(address);
});
}
} */

it('should not forward native value', async () => {
const salt = getRandomBytes32();
Expand Down

0 comments on commit b1c9266

Please sign in to comment.