Fix underflow in gas calculation (#794)

pull/798/head
Mattie Conover 2 years ago committed by GitHub
parent 97bd2b6813
commit cd7dded553
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      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,

Loading…
Cancel
Save