Skip to content

Commit bd0d12f

Browse files
natanasowkonstantinabl
authored andcommitted
chore: fix send raw transaction extension tests
Signed-off-by: nikolay <[email protected]> Signed-off-by: Konstantina Blazhukova <[email protected]>
1 parent bd8d60a commit bd0d12f

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

packages/server/tests/acceptance/sendRawTransactionExtension.spec.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,19 @@ describe('@sendRawTransactionExtension Acceptance Tests', function () {
212212
const GAS_PRICE_REF = '0x123456';
213213
const MAX_ALLOWANCE = 100;
214214

215+
let paymasterEnabledBefore, paymasterWhitelistBefore, maxGasAllowanceHbarBefore;
216+
before(() => {
217+
paymasterEnabledBefore = ConfigService.get('PAYMASTER_ENABLED');
218+
paymasterWhitelistBefore = ConfigService.get('PAYMASTER_WHITELIST');
219+
maxGasAllowanceHbarBefore = ConfigService.get('MAX_GAS_ALLOWANCE_HBAR');
220+
});
221+
222+
after(() => {
223+
ConfigServiceTestHelper.dynamicOverride('PAYMASTER_ENABLED', paymasterEnabledBefore);
224+
ConfigServiceTestHelper.dynamicOverride('PAYMASTER_WHITELIST', paymasterWhitelistBefore);
225+
ConfigServiceTestHelper.dynamicOverride('MAX_GAS_ALLOWANCE_HBAR', maxGasAllowanceHbarBefore);
226+
});
227+
215228
const configurePaymaster = (enabled: boolean, whitelist: string[], allowance: number) => {
216229
ConfigServiceTestHelper.dynamicOverride('PAYMASTER_ENABLED', enabled);
217230
ConfigServiceTestHelper.dynamicOverride('PAYMASTER_WHITELIST', whitelist);

0 commit comments

Comments
 (0)