From 47fe3baeca5c724e906ee06fca1adef59b2c8b53 Mon Sep 17 00:00:00 2001 From: MikeDiam Date: Tue, 28 May 2024 15:50:00 +0300 Subject: [PATCH] [fix types] fix encode types --- package.json | 2 +- src/methods/index.ts | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 4edc7e7c..74b42eae 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "version": "1.3.0", + "version": "1.3.1", "sideEffects": false, "main": "dist/index.js", "types": "dist/index.d.ts", diff --git a/src/methods/index.ts b/src/methods/index.ts index c569ad71..63273774 100644 --- a/src/methods/index.ts +++ b/src/methods/index.ts @@ -31,7 +31,7 @@ type WithEncode = WithoutEncode & { ) } -type WithEstimateGas = WithoutEncode & { +type WithEstimateGas = WithEncode & { estimateGas: (...values: CheckArgs>[0], 'options' | 'contracts' | 'provider'>>) => ( ReturnType> ) @@ -40,8 +40,8 @@ type WithEstimateGas = WithoutEncode & { type ModifiedMethod = 'encode' extends keyof M ? 'estimateGas' extends keyof M ? WithEstimateGas - : WithoutEncode - : WithEncode + : WithEncode + : WithoutEncode type CommonParams = { options: StakeWise.Options