From e2238613f04d342e1790c496c110bb0470c7006c Mon Sep 17 00:00:00 2001 From: Denis Fadeev Date: Thu, 3 Oct 2024 13:32:26 +0300 Subject: [PATCH] connect signer --- examples/hello/tasks/callFromEVM.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/hello/tasks/callFromEVM.ts b/examples/hello/tasks/callFromEVM.ts index 04cf689c..c19f9917 100644 --- a/examples/hello/tasks/callFromEVM.ts +++ b/examples/hello/tasks/callFromEVM.ts @@ -49,7 +49,7 @@ const main = async (args: any, hre: HardhatRuntimeEnvironment) => { ); const factory = (await hre.ethers.getContractFactory(args.name)) as any; - const contract = factory.attach(args.contract); + const contract = factory.attach(args.contract).connect(signer); const tx = await contract.gatewayCall( args.receiver,