From 49aa32779c7299671a6752da6515da1858476e6e Mon Sep 17 00:00:00 2001 From: WYANG008 Date: Fri, 17 May 2019 16:18:22 +0800 Subject: [PATCH] fix preResetGas --- package-lock.json | 2 +- package.json | 2 +- src/__snapshots__/DualClassWrapper.test.ts.snap | 6 +++--- src/__snapshots__/VivaldiWrapper.test.ts.snap | 6 +++--- src/constants.ts | 4 ++-- 5 files changed, 10 insertions(+), 10 deletions(-) diff --git a/package-lock.json b/package-lock.json index fffd9b9..a0f50d8 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "@finbook/duo-contract-wrapper", - "version": "1.3.10", + "version": "1.3.11", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index cef8ede..1aa0bad 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@finbook/duo-contract-wrapper", - "version": "1.3.10", + "version": "1.3.11", "description": "DUO Contract Wrapper", "author": "FinBook Pte Ltd", "main": "dist/index.js", diff --git a/src/__snapshots__/DualClassWrapper.test.ts.snap b/src/__snapshots__/DualClassWrapper.test.ts.snap index b8657e1..758e925 100644 --- a/src/__snapshots__/DualClassWrapper.test.ts.snap +++ b/src/__snapshots__/DualClassWrapper.test.ts.snap @@ -661,7 +661,7 @@ Array [ Array [ Object { "from": "account", - "gas": 120000, + "gas": 240000, "gasPrice": 1000000000, "nonce": 10, }, @@ -681,12 +681,12 @@ exports[`triggerPreReset 3`] = ` Array [ Array [ "account", - 120000, + 240000, Object {}, ], Array [ "account", - 120000, + 240000, Object { "gasLimit": 20000, "gasPrice": 1000000000, diff --git a/src/__snapshots__/VivaldiWrapper.test.ts.snap b/src/__snapshots__/VivaldiWrapper.test.ts.snap index fbc9eca..a93c1c8 100644 --- a/src/__snapshots__/VivaldiWrapper.test.ts.snap +++ b/src/__snapshots__/VivaldiWrapper.test.ts.snap @@ -485,7 +485,7 @@ Array [ Array [ Object { "from": "account", - "gas": 120000, + "gas": 240000, "gasPrice": 1000000000, "nonce": 10, }, @@ -505,12 +505,12 @@ exports[`triggerPreReset 3`] = ` Array [ Array [ "account", - 120000, + 240000, Object {}, ], Array [ "account", - 120000, + 240000, Object { "gasLimit": 20000, "gasPrice": 1000000000, diff --git a/src/constants.ts b/src/constants.ts index 45e94a3..1d1de88 100644 --- a/src/constants.ts +++ b/src/constants.ts @@ -96,8 +96,8 @@ export const DUAL_CLASS_CREATE_GAS = 160000; export const VIVALDI_REDEEM_GAS = 160000; export const VIVALDI_CREATE_GAS = 250000; export const DEFAULT_GAS_PRICE = 5; -export const DUAL_CLASS_PRE_RESET_GAS_LIMIT = 120000; -export const VIVALDI_PRE_RESET_GAS_LIMIT = 120000; +export const DUAL_CLASS_PRE_RESET_GAS_LIMIT = 240000; +export const VIVALDI_PRE_RESET_GAS_LIMIT = 240000; export const RESET_GAS_LIMIT = 4000000; export const START_CUSTODIAN_GAS = 400000; export const FETCH_PRICE_GAS = 150000;