Skip to content

Commit e223861

Browse files
committed
connect signer
1 parent 6e40182 commit e223861

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/hello/tasks/callFromEVM.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ const main = async (args: any, hre: HardhatRuntimeEnvironment) => {
4949
);
5050

5151
const factory = (await hre.ethers.getContractFactory(args.name)) as any;
52-
const contract = factory.attach(args.contract);
52+
const contract = factory.attach(args.contract).connect(signer);
5353

5454
const tx = await contract.gatewayCall(
5555
args.receiver,

0 commit comments

Comments
 (0)