Skip to content

Commit

Permalink
fix: tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Dean Amiel committed Oct 10, 2023
1 parent 2f14552 commit 6117c68
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion test/tokenManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const {
constants: { AddressZero },
} = ethers;
const { expect } = chai;
const { expectRevert } = require('../scripts/utils');
const { expectRevert } = require('./utils');
const { deployContract } = require('../scripts/deploy');

describe('Token Manager', () => {
Expand Down
16 changes: 8 additions & 8 deletions test/tokenService.js
Original file line number Diff line number Diff line change
Expand Up @@ -1722,16 +1722,16 @@ describe('Interchain Token Service', () => {
await expect(
token
.connect(spender)
.interchainTransferFrom(sender.address, destChain, destAddress, amount, metadata, { value: gasValue }),
.interchainTransferFrom(sender.address, destinationChain, destAddress, amount, metadata, { value: gasValue }),
)
.and.to.emit(token, 'Transfer')
.withArgs(wallet.address, transferToAddress, amount)
.and.to.emit(gateway, 'ContractCall')
.withArgs(service.address, destChain, service.address.toLowerCase(), payloadHash, payload)
.withArgs(service.address, destinationChain, service.address.toLowerCase(), payloadHash, payload)
.and.to.emit(gasService, 'NativeGasPaidForContractCall')
.withArgs(service.address, destChain, service.address.toLowerCase(), payloadHash, gasValue, spender.address)
.withArgs(service.address, destinationChain, service.address.toLowerCase(), payloadHash, gasValue, spender.address)
.to.emit(service, 'TokenSent')
.withArgs(tokenId, destChain, destAddress, sendAmount);
.withArgs(tokenId, destinationChain, destAddress, sendAmount);
});
}

Expand All @@ -1753,16 +1753,16 @@ describe('Interchain Token Service', () => {
await expect(
token
.connect(spender)
.interchainTransferFrom(sender.address, destChain, destAddress, amount, metadata, { value: gasValue }),
.interchainTransferFrom(sender.address, destinationChain, destAddress, amount, metadata, { value: gasValue }),
)
.and.to.emit(token, 'Transfer')
.withArgs(wallet.address, transferToAddress, amount)
.and.to.emit(gateway, 'ContractCall')
.withArgs(service.address, destChain, service.address.toLowerCase(), payloadHash, payload)
.withArgs(service.address, destinationChain, service.address.toLowerCase(), payloadHash, payload)
.and.to.emit(gasService, 'NativeGasPaidForContractCall')
.withArgs(service.address, destChain, service.address.toLowerCase(), payloadHash, gasValue, spender.address)
.withArgs(service.address, destinationChain, service.address.toLowerCase(), payloadHash, gasValue, spender.address)
.to.emit(service, 'TokenSent')
.withArgs(tokenId, destChain, destAddress, sendAmount);
.withArgs(tokenId, destinationChain, destAddress, sendAmount);
});
});

Expand Down

0 comments on commit 6117c68

Please sign in to comment.