|
|
@ -19,7 +19,6 @@ import { createTestProviderTools, getTestAccounts } from '../../../../stub/provi |
|
|
|
|
|
|
|
|
|
|
|
const noop = () => true |
|
|
|
const noop = () => true |
|
|
|
const currentNetworkId = 42 |
|
|
|
const currentNetworkId = 42 |
|
|
|
const netStore = new ObservableStore(currentNetworkId) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
describe('Transaction Controller', function () { |
|
|
|
describe('Transaction Controller', function () { |
|
|
|
let txController, provider, providerResultStub, fromAccount |
|
|
|
let txController, provider, providerResultStub, fromAccount |
|
|
@ -41,7 +40,7 @@ describe('Transaction Controller', function () { |
|
|
|
getGasPrice: function () { |
|
|
|
getGasPrice: function () { |
|
|
|
return '0xee6b2800' |
|
|
|
return '0xee6b2800' |
|
|
|
}, |
|
|
|
}, |
|
|
|
networkStore: netStore, |
|
|
|
networkStore: new ObservableStore(currentNetworkId), |
|
|
|
txHistoryLimit: 10, |
|
|
|
txHistoryLimit: 10, |
|
|
|
blockTracker: blockTrackerStub, |
|
|
|
blockTracker: blockTrackerStub, |
|
|
|
signTransaction: (ethTx) => new Promise((resolve) => { |
|
|
|
signTransaction: (ethTx) => new Promise((resolve) => { |
|
|
|