2021-02-04 19:15:23 +01:00
|
|
|
import assert from 'assert';
|
|
|
|
import nock from 'nock';
|
|
|
|
import sinon from 'sinon';
|
|
|
|
import proxyquire from 'proxyquire';
|
2018-09-09 21:25:54 +02:00
|
|
|
|
2021-02-04 19:15:23 +01:00
|
|
|
const fakeStorage = {};
|
2018-11-05 18:01:46 +01:00
|
|
|
|
2019-03-22 00:03:30 +01:00
|
|
|
const GasDuck = proxyquire('./gas.duck.js', {
|
2020-11-24 16:38:04 +01:00
|
|
|
'../../../lib/storage-helpers': fakeStorage,
|
2021-02-04 19:15:23 +01:00
|
|
|
});
|
2018-11-05 18:01:46 +01:00
|
|
|
|
|
|
|
const {
|
2018-09-09 21:25:54 +02:00
|
|
|
basicGasEstimatesLoadingStarted,
|
|
|
|
basicGasEstimatesLoadingFinished,
|
|
|
|
setBasicGasEstimateData,
|
|
|
|
setCustomGasPrice,
|
|
|
|
setCustomGasLimit,
|
|
|
|
resetCustomGasState,
|
2018-12-10 22:51:00 +01:00
|
|
|
fetchBasicGasEstimates,
|
2021-02-04 19:15:23 +01:00
|
|
|
} = GasDuck;
|
|
|
|
const GasReducer = GasDuck.default;
|
2018-09-09 21:25:54 +02:00
|
|
|
|
2020-02-11 17:51:13 +01:00
|
|
|
describe('Gas Duck', function () {
|
2021-02-04 19:15:23 +01:00
|
|
|
let tempDateNow;
|
2020-12-03 00:25:19 +01:00
|
|
|
const mockGasPriceApiResponse = {
|
|
|
|
SafeGasPrice: 10,
|
|
|
|
ProposeGasPrice: 20,
|
|
|
|
FastGasPrice: 30,
|
2021-02-04 19:15:23 +01:00
|
|
|
};
|
2018-09-09 21:25:54 +02:00
|
|
|
|
2020-02-11 17:51:13 +01:00
|
|
|
beforeEach(function () {
|
2021-02-04 19:15:23 +01:00
|
|
|
tempDateNow = global.Date.now;
|
2019-07-04 21:18:12 +02:00
|
|
|
|
2021-02-04 19:15:23 +01:00
|
|
|
fakeStorage.getStorageItem = sinon.stub();
|
|
|
|
fakeStorage.setStorageItem = sinon.spy();
|
|
|
|
global.Date.now = () => 2000000;
|
|
|
|
});
|
2018-09-09 21:25:54 +02:00
|
|
|
|
2020-02-11 17:51:13 +01:00
|
|
|
afterEach(function () {
|
2021-02-04 19:15:23 +01:00
|
|
|
sinon.restore();
|
2019-07-04 21:18:12 +02:00
|
|
|
|
2021-02-04 19:15:23 +01:00
|
|
|
global.Date.now = tempDateNow;
|
|
|
|
});
|
2018-09-09 21:25:54 +02:00
|
|
|
|
|
|
|
const mockState = {
|
2020-02-06 17:38:14 +01:00
|
|
|
mockProp: 123,
|
2021-02-04 19:15:23 +01:00
|
|
|
};
|
2018-09-09 21:25:54 +02:00
|
|
|
const initState = {
|
|
|
|
customData: {
|
2018-09-13 10:47:05 +02:00
|
|
|
price: null,
|
2018-12-12 15:54:03 +01:00
|
|
|
limit: null,
|
2018-09-09 21:25:54 +02:00
|
|
|
},
|
|
|
|
basicEstimates: {
|
|
|
|
average: null,
|
|
|
|
fast: null,
|
|
|
|
safeLow: null,
|
|
|
|
},
|
|
|
|
basicEstimateIsLoading: true,
|
2018-12-10 22:51:00 +01:00
|
|
|
basicPriceEstimatesLastRetrieved: 0,
|
2021-02-04 19:15:23 +01:00
|
|
|
};
|
2020-11-03 00:41:28 +01:00
|
|
|
const BASIC_GAS_ESTIMATE_LOADING_FINISHED =
|
2021-02-04 19:15:23 +01:00
|
|
|
'metamask/gas/BASIC_GAS_ESTIMATE_LOADING_FINISHED';
|
2020-11-03 00:41:28 +01:00
|
|
|
const BASIC_GAS_ESTIMATE_LOADING_STARTED =
|
2021-02-04 19:15:23 +01:00
|
|
|
'metamask/gas/BASIC_GAS_ESTIMATE_LOADING_STARTED';
|
|
|
|
const RESET_CUSTOM_GAS_STATE = 'metamask/gas/RESET_CUSTOM_GAS_STATE';
|
|
|
|
const SET_BASIC_GAS_ESTIMATE_DATA =
|
|
|
|
'metamask/gas/SET_BASIC_GAS_ESTIMATE_DATA';
|
|
|
|
const SET_CUSTOM_GAS_LIMIT = 'metamask/gas/SET_CUSTOM_GAS_LIMIT';
|
|
|
|
const SET_CUSTOM_GAS_PRICE = 'metamask/gas/SET_CUSTOM_GAS_PRICE';
|
2020-11-03 00:41:28 +01:00
|
|
|
const SET_BASIC_PRICE_ESTIMATES_LAST_RETRIEVED =
|
2021-02-04 19:15:23 +01:00
|
|
|
'metamask/gas/SET_BASIC_PRICE_ESTIMATES_LAST_RETRIEVED';
|
2018-09-09 21:25:54 +02:00
|
|
|
|
2020-02-11 17:51:13 +01:00
|
|
|
describe('GasReducer()', function () {
|
|
|
|
it('should initialize state', function () {
|
2021-02-04 19:15:23 +01:00
|
|
|
assert.deepStrictEqual(GasReducer(undefined, {}), initState);
|
|
|
|
});
|
2018-09-09 21:25:54 +02:00
|
|
|
|
2020-02-11 17:51:13 +01:00
|
|
|
it('should return state unchanged if it does not match a dispatched actions type', function () {
|
2020-12-03 16:46:22 +01:00
|
|
|
assert.deepStrictEqual(
|
2018-09-09 21:25:54 +02:00
|
|
|
GasReducer(mockState, {
|
|
|
|
type: 'someOtherAction',
|
|
|
|
value: 'someValue',
|
|
|
|
}),
|
2020-02-06 17:38:14 +01:00
|
|
|
mockState,
|
2021-02-04 19:15:23 +01:00
|
|
|
);
|
|
|
|
});
|
2018-09-09 21:25:54 +02:00
|
|
|
|
2020-02-11 17:51:13 +01:00
|
|
|
it('should set basicEstimateIsLoading to true when receiving a BASIC_GAS_ESTIMATE_LOADING_STARTED action', function () {
|
2020-12-03 16:46:22 +01:00
|
|
|
assert.deepStrictEqual(
|
2020-02-06 17:38:14 +01:00
|
|
|
GasReducer(mockState, { type: BASIC_GAS_ESTIMATE_LOADING_STARTED }),
|
|
|
|
{ basicEstimateIsLoading: true, ...mockState },
|
2021-02-04 19:15:23 +01:00
|
|
|
);
|
|
|
|
});
|
2018-09-09 21:25:54 +02:00
|
|
|
|
2020-02-11 17:51:13 +01:00
|
|
|
it('should set basicEstimateIsLoading to false when receiving a BASIC_GAS_ESTIMATE_LOADING_FINISHED action', function () {
|
2020-12-03 16:46:22 +01:00
|
|
|
assert.deepStrictEqual(
|
2020-02-06 17:38:14 +01:00
|
|
|
GasReducer(mockState, { type: BASIC_GAS_ESTIMATE_LOADING_FINISHED }),
|
|
|
|
{ basicEstimateIsLoading: false, ...mockState },
|
2021-02-04 19:15:23 +01:00
|
|
|
);
|
|
|
|
});
|
2018-09-09 21:25:54 +02:00
|
|
|
|
2020-02-11 17:51:13 +01:00
|
|
|
it('should set basicEstimates when receiving a SET_BASIC_GAS_ESTIMATE_DATA action', function () {
|
2020-12-03 16:46:22 +01:00
|
|
|
assert.deepStrictEqual(
|
2018-09-09 21:25:54 +02:00
|
|
|
GasReducer(mockState, {
|
|
|
|
type: SET_BASIC_GAS_ESTIMATE_DATA,
|
|
|
|
value: { someProp: 'someData123' },
|
|
|
|
}),
|
2020-02-06 17:38:14 +01:00
|
|
|
{ basicEstimates: { someProp: 'someData123' }, ...mockState },
|
2021-02-04 19:15:23 +01:00
|
|
|
);
|
|
|
|
});
|
2018-09-09 21:25:54 +02:00
|
|
|
|
2020-02-11 17:51:13 +01:00
|
|
|
it('should set customData.price when receiving a SET_CUSTOM_GAS_PRICE action', function () {
|
2020-12-03 16:46:22 +01:00
|
|
|
assert.deepStrictEqual(
|
2018-09-09 21:25:54 +02:00
|
|
|
GasReducer(mockState, {
|
|
|
|
type: SET_CUSTOM_GAS_PRICE,
|
|
|
|
value: 4321,
|
|
|
|
}),
|
2020-02-06 17:38:14 +01:00
|
|
|
{ customData: { price: 4321 }, ...mockState },
|
2021-02-04 19:15:23 +01:00
|
|
|
);
|
|
|
|
});
|
2018-09-09 21:25:54 +02:00
|
|
|
|
2020-02-11 17:51:13 +01:00
|
|
|
it('should set customData.limit when receiving a SET_CUSTOM_GAS_LIMIT action', function () {
|
2020-12-03 16:46:22 +01:00
|
|
|
assert.deepStrictEqual(
|
2018-09-09 21:25:54 +02:00
|
|
|
GasReducer(mockState, {
|
|
|
|
type: SET_CUSTOM_GAS_LIMIT,
|
|
|
|
value: 9876,
|
|
|
|
}),
|
2020-02-06 17:38:14 +01:00
|
|
|
{ customData: { limit: 9876 }, ...mockState },
|
2021-02-04 19:15:23 +01:00
|
|
|
);
|
|
|
|
});
|
2018-09-09 21:25:54 +02:00
|
|
|
|
2020-02-11 17:51:13 +01:00
|
|
|
it('should return the initial state in response to a RESET_CUSTOM_GAS_STATE action', function () {
|
2020-12-03 16:46:22 +01:00
|
|
|
assert.deepStrictEqual(
|
2020-02-06 17:38:14 +01:00
|
|
|
GasReducer(mockState, { type: RESET_CUSTOM_GAS_STATE }),
|
|
|
|
initState,
|
2021-02-04 19:15:23 +01:00
|
|
|
);
|
|
|
|
});
|
|
|
|
});
|
2018-09-09 21:25:54 +02:00
|
|
|
|
2020-02-11 17:51:13 +01:00
|
|
|
describe('basicGasEstimatesLoadingStarted', function () {
|
|
|
|
it('should create the correct action', function () {
|
2020-12-03 16:46:22 +01:00
|
|
|
assert.deepStrictEqual(basicGasEstimatesLoadingStarted(), {
|
2020-11-03 00:41:28 +01:00
|
|
|
type: BASIC_GAS_ESTIMATE_LOADING_STARTED,
|
2021-02-04 19:15:23 +01:00
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
2018-09-09 21:25:54 +02:00
|
|
|
|
2020-02-11 17:51:13 +01:00
|
|
|
describe('basicGasEstimatesLoadingFinished', function () {
|
|
|
|
it('should create the correct action', function () {
|
2020-12-03 16:46:22 +01:00
|
|
|
assert.deepStrictEqual(basicGasEstimatesLoadingFinished(), {
|
2020-11-03 00:41:28 +01:00
|
|
|
type: BASIC_GAS_ESTIMATE_LOADING_FINISHED,
|
2021-02-04 19:15:23 +01:00
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
2018-09-09 21:25:54 +02:00
|
|
|
|
2020-02-11 17:51:13 +01:00
|
|
|
describe('fetchBasicGasEstimates', function () {
|
|
|
|
it('should call fetch with the expected params', async function () {
|
2021-02-04 19:15:23 +01:00
|
|
|
const mockDistpatch = sinon.spy();
|
2019-07-04 21:18:12 +02:00
|
|
|
|
2021-02-04 19:15:23 +01:00
|
|
|
const windowFetchSpy = sinon.spy(window, 'fetch');
|
2021-02-02 22:14:03 +01:00
|
|
|
|
|
|
|
nock('https://api.metaswap.codefi.network')
|
|
|
|
.get('/gasPrices')
|
2021-02-04 19:15:23 +01:00
|
|
|
.reply(200, mockGasPriceApiResponse);
|
2021-02-02 22:14:03 +01:00
|
|
|
|
2020-02-06 17:38:14 +01:00
|
|
|
await fetchBasicGasEstimates()(mockDistpatch, () => ({
|
|
|
|
gas: { ...initState, basicPriceAEstimatesLastRetrieved: 1000000 },
|
2021-02-04 19:15:23 +01:00
|
|
|
}));
|
2020-12-03 16:46:22 +01:00
|
|
|
assert.deepStrictEqual(mockDistpatch.getCall(0).args, [
|
2020-11-03 00:41:28 +01:00
|
|
|
{ type: BASIC_GAS_ESTIMATE_LOADING_STARTED },
|
2021-02-04 19:15:23 +01:00
|
|
|
]);
|
2020-06-29 19:26:21 +02:00
|
|
|
assert.ok(
|
2021-02-02 22:14:03 +01:00
|
|
|
windowFetchSpy
|
2020-11-03 00:41:28 +01:00
|
|
|
.getCall(0)
|
2020-12-03 00:25:19 +01:00
|
|
|
.args[0].startsWith('https://api.metaswap.codefi.network/gasPrices'),
|
|
|
|
'should fetch metaswap /gasPrices',
|
2021-02-04 19:15:23 +01:00
|
|
|
);
|
2020-12-03 16:46:22 +01:00
|
|
|
assert.deepStrictEqual(mockDistpatch.getCall(1).args, [
|
2020-11-03 00:41:28 +01:00
|
|
|
{ type: SET_BASIC_PRICE_ESTIMATES_LAST_RETRIEVED, value: 2000000 },
|
2021-02-04 19:15:23 +01:00
|
|
|
]);
|
2020-12-03 16:46:22 +01:00
|
|
|
assert.deepStrictEqual(mockDistpatch.getCall(2).args, [
|
2020-11-03 00:41:28 +01:00
|
|
|
{
|
2019-07-04 21:18:12 +02:00
|
|
|
type: SET_BASIC_GAS_ESTIMATE_DATA,
|
|
|
|
value: {
|
2020-12-03 00:25:19 +01:00
|
|
|
average: 20,
|
|
|
|
fast: 30,
|
|
|
|
safeLow: 10,
|
2019-07-04 21:18:12 +02:00
|
|
|
},
|
2020-11-03 00:41:28 +01:00
|
|
|
},
|
2021-02-04 19:15:23 +01:00
|
|
|
]);
|
2020-12-03 16:46:22 +01:00
|
|
|
assert.deepStrictEqual(mockDistpatch.getCall(3).args, [
|
2020-11-03 00:41:28 +01:00
|
|
|
{ type: BASIC_GAS_ESTIMATE_LOADING_FINISHED },
|
2021-02-04 19:15:23 +01:00
|
|
|
]);
|
|
|
|
});
|
2019-07-04 21:18:12 +02:00
|
|
|
|
2020-11-24 16:38:04 +01:00
|
|
|
it('should fetch recently retrieved estimates from storage', async function () {
|
2021-02-04 19:15:23 +01:00
|
|
|
const mockDistpatch = sinon.spy();
|
2021-02-02 22:14:03 +01:00
|
|
|
|
2021-02-04 19:15:23 +01:00
|
|
|
const windowFetchSpy = sinon.spy(window, 'fetch');
|
2021-02-02 22:14:03 +01:00
|
|
|
|
2020-11-24 16:38:04 +01:00
|
|
|
fakeStorage.getStorageItem
|
2019-07-04 21:18:12 +02:00
|
|
|
.withArgs('BASIC_PRICE_ESTIMATES_LAST_RETRIEVED')
|
2021-02-04 19:15:23 +01:00
|
|
|
.returns(2000000 - 1); // one second ago from "now"
|
2020-11-24 16:38:04 +01:00
|
|
|
fakeStorage.getStorageItem.withArgs('BASIC_PRICE_ESTIMATES').returns({
|
|
|
|
average: 25,
|
|
|
|
fast: 35,
|
|
|
|
safeLow: 15,
|
2021-02-04 19:15:23 +01:00
|
|
|
});
|
2018-12-10 22:51:00 +01:00
|
|
|
|
2020-11-03 00:41:28 +01:00
|
|
|
await fetchBasicGasEstimates()(mockDistpatch, () => ({
|
|
|
|
gas: { ...initState },
|
2021-02-04 19:15:23 +01:00
|
|
|
}));
|
2020-12-03 16:46:22 +01:00
|
|
|
assert.deepStrictEqual(mockDistpatch.getCall(0).args, [
|
2020-11-03 00:41:28 +01:00
|
|
|
{ type: BASIC_GAS_ESTIMATE_LOADING_STARTED },
|
2021-02-04 19:15:23 +01:00
|
|
|
]);
|
|
|
|
assert.ok(windowFetchSpy.notCalled);
|
2020-12-03 16:46:22 +01:00
|
|
|
assert.deepStrictEqual(mockDistpatch.getCall(1).args, [
|
2020-11-03 00:41:28 +01:00
|
|
|
{
|
2019-07-04 21:18:12 +02:00
|
|
|
type: SET_BASIC_GAS_ESTIMATE_DATA,
|
|
|
|
value: {
|
|
|
|
average: 25,
|
|
|
|
fast: 35,
|
|
|
|
safeLow: 15,
|
|
|
|
},
|
2020-11-03 00:41:28 +01:00
|
|
|
},
|
2021-02-04 19:15:23 +01:00
|
|
|
]);
|
2020-12-03 16:46:22 +01:00
|
|
|
assert.deepStrictEqual(mockDistpatch.getCall(2).args, [
|
2020-11-03 00:41:28 +01:00
|
|
|
{ type: BASIC_GAS_ESTIMATE_LOADING_FINISHED },
|
2021-02-04 19:15:23 +01:00
|
|
|
]);
|
|
|
|
});
|
2019-07-04 21:18:12 +02:00
|
|
|
|
2020-11-24 16:38:04 +01:00
|
|
|
it('should fallback to network if retrieving estimates from storage fails', async function () {
|
2021-02-04 19:15:23 +01:00
|
|
|
const mockDistpatch = sinon.spy();
|
2021-02-02 22:14:03 +01:00
|
|
|
|
2021-02-04 19:15:23 +01:00
|
|
|
const windowFetchSpy = sinon.spy(window, 'fetch');
|
2021-02-02 22:14:03 +01:00
|
|
|
|
|
|
|
nock('https://api.metaswap.codefi.network')
|
|
|
|
.get('/gasPrices')
|
2021-02-04 19:15:23 +01:00
|
|
|
.reply(200, mockGasPriceApiResponse);
|
2021-02-02 22:14:03 +01:00
|
|
|
|
2020-11-24 16:38:04 +01:00
|
|
|
fakeStorage.getStorageItem
|
2019-07-04 21:18:12 +02:00
|
|
|
.withArgs('BASIC_PRICE_ESTIMATES_LAST_RETRIEVED')
|
2021-02-04 19:15:23 +01:00
|
|
|
.returns(2000000 - 1); // one second ago from "now"
|
2019-07-04 21:18:12 +02:00
|
|
|
|
2020-11-03 00:41:28 +01:00
|
|
|
await fetchBasicGasEstimates()(mockDistpatch, () => ({
|
|
|
|
gas: { ...initState },
|
2021-02-04 19:15:23 +01:00
|
|
|
}));
|
2020-12-03 16:46:22 +01:00
|
|
|
assert.deepStrictEqual(mockDistpatch.getCall(0).args, [
|
2020-11-03 00:41:28 +01:00
|
|
|
{ type: BASIC_GAS_ESTIMATE_LOADING_STARTED },
|
2021-02-04 19:15:23 +01:00
|
|
|
]);
|
2020-06-29 19:26:21 +02:00
|
|
|
assert.ok(
|
2021-02-02 22:14:03 +01:00
|
|
|
windowFetchSpy
|
2020-11-03 00:41:28 +01:00
|
|
|
.getCall(0)
|
2020-12-03 00:25:19 +01:00
|
|
|
.args[0].startsWith('https://api.metaswap.codefi.network/gasPrices'),
|
|
|
|
'should fetch metaswap /gasPrices',
|
2021-02-04 19:15:23 +01:00
|
|
|
);
|
2021-02-02 22:14:03 +01:00
|
|
|
|
2020-12-03 16:46:22 +01:00
|
|
|
assert.deepStrictEqual(mockDistpatch.getCall(1).args, [
|
2020-11-03 00:41:28 +01:00
|
|
|
{ type: SET_BASIC_PRICE_ESTIMATES_LAST_RETRIEVED, value: 2000000 },
|
2021-02-04 19:15:23 +01:00
|
|
|
]);
|
2020-12-03 16:46:22 +01:00
|
|
|
assert.deepStrictEqual(mockDistpatch.getCall(2).args, [
|
2020-11-03 00:41:28 +01:00
|
|
|
{
|
2018-12-10 22:51:00 +01:00
|
|
|
type: SET_BASIC_GAS_ESTIMATE_DATA,
|
|
|
|
value: {
|
2020-12-03 00:25:19 +01:00
|
|
|
safeLow: 10,
|
|
|
|
average: 20,
|
|
|
|
fast: 30,
|
2019-07-04 21:18:12 +02:00
|
|
|
},
|
2020-11-03 00:41:28 +01:00
|
|
|
},
|
2021-02-04 19:15:23 +01:00
|
|
|
]);
|
2020-12-03 16:46:22 +01:00
|
|
|
assert.deepStrictEqual(mockDistpatch.getCall(3).args, [
|
2020-11-03 00:41:28 +01:00
|
|
|
{ type: BASIC_GAS_ESTIMATE_LOADING_FINISHED },
|
2021-02-04 19:15:23 +01:00
|
|
|
]);
|
|
|
|
});
|
|
|
|
});
|
2019-07-04 21:18:12 +02:00
|
|
|
|
2020-02-11 17:51:13 +01:00
|
|
|
describe('setBasicGasEstimateData', function () {
|
|
|
|
it('should create the correct action', function () {
|
2020-12-03 16:46:22 +01:00
|
|
|
assert.deepStrictEqual(setBasicGasEstimateData('mockBasicEstimatData'), {
|
2020-11-03 00:41:28 +01:00
|
|
|
type: SET_BASIC_GAS_ESTIMATE_DATA,
|
|
|
|
value: 'mockBasicEstimatData',
|
2021-02-04 19:15:23 +01:00
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
2018-09-09 21:25:54 +02:00
|
|
|
|
2020-02-11 17:51:13 +01:00
|
|
|
describe('setCustomGasPrice', function () {
|
|
|
|
it('should create the correct action', function () {
|
2020-12-03 16:46:22 +01:00
|
|
|
assert.deepStrictEqual(setCustomGasPrice('mockCustomGasPrice'), {
|
2020-11-03 00:41:28 +01:00
|
|
|
type: SET_CUSTOM_GAS_PRICE,
|
|
|
|
value: 'mockCustomGasPrice',
|
2021-02-04 19:15:23 +01:00
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
2018-09-09 21:25:54 +02:00
|
|
|
|
2020-02-11 17:51:13 +01:00
|
|
|
describe('setCustomGasLimit', function () {
|
|
|
|
it('should create the correct action', function () {
|
2020-12-03 16:46:22 +01:00
|
|
|
assert.deepStrictEqual(setCustomGasLimit('mockCustomGasLimit'), {
|
2020-11-03 00:41:28 +01:00
|
|
|
type: SET_CUSTOM_GAS_LIMIT,
|
|
|
|
value: 'mockCustomGasLimit',
|
2021-02-04 19:15:23 +01:00
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
2018-09-09 21:25:54 +02:00
|
|
|
|
2020-02-11 17:51:13 +01:00
|
|
|
describe('resetCustomGasState', function () {
|
|
|
|
it('should create the correct action', function () {
|
2020-12-03 16:46:22 +01:00
|
|
|
assert.deepStrictEqual(resetCustomGasState(), {
|
|
|
|
type: RESET_CUSTOM_GAS_STATE,
|
2021-02-04 19:15:23 +01:00
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|