|
|
@ -1,4 +1,4 @@ |
|
|
|
import { BigNumber, ethers } from 'ethers'; |
|
|
|
import { ethers } from 'ethers'; |
|
|
|
|
|
|
|
|
|
|
|
import { TypedListener } from '@abacus-network/core/dist/common'; |
|
|
|
import { TypedListener } from '@abacus-network/core/dist/common'; |
|
|
|
import { |
|
|
|
import { |
|
|
@ -19,7 +19,6 @@ export class HelloWorldApp< |
|
|
|
from: From, |
|
|
|
from: From, |
|
|
|
to: Remotes<Chain, From>, |
|
|
|
to: Remotes<Chain, From>, |
|
|
|
message: string, |
|
|
|
message: string, |
|
|
|
value: BigNumber, |
|
|
|
|
|
|
|
receiveHandler?: TypedListener<ReceivedHelloWorldEvent>, |
|
|
|
receiveHandler?: TypedListener<ReceivedHelloWorldEvent>, |
|
|
|
): Promise<ethers.ContractReceipt> { |
|
|
|
): Promise<ethers.ContractReceipt> { |
|
|
|
const sender = this.getContracts(from).router; |
|
|
|
const sender = this.getContracts(from).router; |
|
|
@ -37,7 +36,6 @@ export class HelloWorldApp< |
|
|
|
const tx = await sender.sendHelloWorld(toDomain, message, { |
|
|
|
const tx = await sender.sendHelloWorld(toDomain, message, { |
|
|
|
...chainConnection.overrides, |
|
|
|
...chainConnection.overrides, |
|
|
|
gasLimit, |
|
|
|
gasLimit, |
|
|
|
value, |
|
|
|
|
|
|
|
}); |
|
|
|
}); |
|
|
|
const receipt = await tx.wait(chainConnection.confirmations); |
|
|
|
const receipt = await tx.wait(chainConnection.confirmations); |
|
|
|
|
|
|
|
|
|
|
|