From cd7dded55336d8c5caa7ae0a4b708a3437822b8c Mon Sep 17 00:00:00 2001 From: Mattie Conover Date: Mon, 18 Jul 2022 17:04:29 -0400 Subject: [PATCH] Fix underflow in gas calculation (#794) --- typescript/helloworld/src/app/app.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/typescript/helloworld/src/app/app.ts b/typescript/helloworld/src/app/app.ts index cec079b31..b6c8a4a1d 100644 --- a/typescript/helloworld/src/app/app.ts +++ b/typescript/helloworld/src/app/app.ts @@ -31,7 +31,7 @@ export class HelloWorldApp< message, chainConnection.overrides, ); - const gasLimit = estimated.mul(1.1).toNumber(); + const gasLimit = estimated.mul(11).div(10); const tx = await sender.sendHelloWorld(toDomain, message, { ...chainConnection.overrides,