From 6fff19614cd8119967248d7d204ab64fbf88ce8a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torsten=20St=C3=BCber?= <15174476+TorstenStueber@users.noreply.github.com> Date: Mon, 19 Aug 2024 06:42:19 -0300 Subject: [PATCH] Use proper hard coded gas limits (#100) --- src/helpers/contracts.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/helpers/contracts.ts b/src/helpers/contracts.ts index 779b848d..90d4ca0b 100644 --- a/src/helpers/contracts.ts +++ b/src/helpers/contracts.ts @@ -32,10 +32,10 @@ export const defaultWriteLimits: Limits = { }; export const createWriteOptions = (api: ApiPromise, opts?: ContractOptions) => ({ - gasLimit: api.createType('WeightV2', { - refTime: '18000000000', - proofSize: '1750000', - }), + gas: { + refTime: '130000000000', + proofSize: '1300000', + }, storageDepositLimit: null, ...opts, });