Skip to content

Commit

Permalink
Tasks: Fix base bridge event param typo (#102)
Browse files Browse the repository at this point in the history
  • Loading branch information
PatricioHenderson authored Sep 13, 2023
1 parent 7e415e0 commit ba043bf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ interface IBaseBridgeTask is ITask {
/**
* @dev Emitted every time a custom destination chain is set for a token
*/
event CustomDestinationChainSet(address indexed token, uint256 indexed defaultDestinationChain);
event CustomDestinationChainSet(address indexed token, uint256 indexed destinationChain);

/**
* @dev Emitted every time a custom max slippage is set
Expand Down
4 changes: 2 additions & 2 deletions packages/tasks/test/bridge/BaseBridgeTask.behavior.ts
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ export function itBehavesLikeBaseBridgeTask(executionType: string): void {
it('emits an event', async function () {
const tx = await this.task.setCustomDestinationChain(token.address, chainId)

await assertEvent(tx, 'CustomDestinationChainSet', { token, defaultDestinationChain: chainId })
await assertEvent(tx, 'CustomDestinationChainSet', { token, destinationChain: chainId })
})
}

Expand Down Expand Up @@ -318,7 +318,7 @@ export function itBehavesLikeBaseBridgeTask(executionType: string): void {
it('emits an event', async function () {
const tx = await this.task.setCustomDestinationChain(token.address, 0)

await assertEvent(tx, 'CustomDestinationChainSet', { token, defaultDestinationChain: 0 })
await assertEvent(tx, 'CustomDestinationChainSet', { token, destinationChain: 0 })
})
}

Expand Down

0 comments on commit ba043bf

Please sign in to comment.