From 9b7ed4865131d6a20c6ec8d54da099359169a808 Mon Sep 17 00:00:00 2001 From: Aleksao998 Date: Thu, 8 Aug 2024 14:37:06 +0200 Subject: [PATCH] fix NilHardhatUserConfig and icnrese feeCredit --- package.json | 2 +- src/index.ts | 2 +- src/setup.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 2713756..934e5f2 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@nilfoundation/hardhat-plugin", - "version": "0.12.0", + "version": "0.12.1", "description": "Custom Hardhat plugin to enable seamless deployment and interaction with applications within =nil;", "repository": { "type": "git", diff --git a/src/index.ts b/src/index.ts index 9e336e6..1173e58 100644 --- a/src/index.ts +++ b/src/index.ts @@ -34,7 +34,7 @@ extendEnvironment((hre) => { export interface NilHardhatUserConfig extends HardhatUserConfig { walletAddress?: string; - gasLimit?: number; + feeCredit?: number; shardId?: number; directTxGasLimit?: number; directTxValue?: number; diff --git a/src/setup.ts b/src/setup.ts index 3bb58ae..d9471cd 100644 --- a/src/setup.ts +++ b/src/setup.ts @@ -114,7 +114,7 @@ export async function setupWalletAndClient( originalSend, originalRequest, isRequest: false, - feeCredit: BigInt(hre.config.feeCredit ?? 1_000_000), + feeCredit: BigInt(hre.config.feeCredit ?? 5_000_000), directTxValue: hre.config.directTxValue ? BigInt(hre.config.directTxValue) : undefined,