From bb8cc923a9daf45b2e04957ffdff73f1c17b2e8b Mon Sep 17 00:00:00 2001 From: sophian Date: Mon, 6 Jan 2025 15:28:51 -0500 Subject: [PATCH] Increase gas limit again --- centrifuge-js/src/CentrifugeBase.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/centrifuge-js/src/CentrifugeBase.ts b/centrifuge-js/src/CentrifugeBase.ts index 9db14df77..2eaf86070 100644 --- a/centrifuge-js/src/CentrifugeBase.ts +++ b/centrifuge-js/src/CentrifugeBase.ts @@ -39,7 +39,7 @@ type ProxyType = string const EVM_DISPATCH_PRECOMPILE = '0x0000000000000000000000000000000000000401' const WEIGHT_PER_GAS = 25_000 -const GAS_LIMIT_POV_SIZE_RATIO = 4 +const GAS_LIMIT_POV_SIZE_RATIO = 10 const EVM_DISPATCH_OVERHEAD_GAS = 1_000_000 export type Config = { @@ -533,7 +533,7 @@ export class CentrifugeBase { switchMap((paymentInfo) => { try { const weight = paymentInfo.weight.refTime.toPrimitive() as number - const gas = (Math.ceil(weight / WEIGHT_PER_GAS) + EVM_DISPATCH_OVERHEAD_GAS) * GAS_LIMIT_POV_SIZE_RATIO * 1.5 + const gas = (Math.ceil(weight / WEIGHT_PER_GAS) + EVM_DISPATCH_OVERHEAD_GAS) * GAS_LIMIT_POV_SIZE_RATIO const tx: TransactionRequest = { // type: 2, to: EVM_DISPATCH_PRECOMPILE,