aboutsummaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorfragosti <francesco.agosti93@gmail.com>2018-10-26 06:03:30 +0800
committerfragosti <francesco.agosti93@gmail.com>2018-10-26 06:03:30 +0800
commita2d09a68b0d6d20359916251e0cc795fb600360e (patch)
tree0d1e40df3c71abb90b39546397200437ec8fd8bc /packages
parent98cf046b4cec19441754481613ef53b805e03ebd (diff)
downloaddexon-sol-tools-a2d09a68b0d6d20359916251e0cc795fb600360e.tar
dexon-sol-tools-a2d09a68b0d6d20359916251e0cc795fb600360e.tar.gz
dexon-sol-tools-a2d09a68b0d6d20359916251e0cc795fb600360e.tar.bz2
dexon-sol-tools-a2d09a68b0d6d20359916251e0cc795fb600360e.tar.lz
dexon-sol-tools-a2d09a68b0d6d20359916251e0cc795fb600360e.tar.xz
dexon-sol-tools-a2d09a68b0d6d20359916251e0cc795fb600360e.tar.zst
dexon-sol-tools-a2d09a68b0d6d20359916251e0cc795fb600360e.zip
chore: add to asset-buyer changelog.json
Diffstat (limited to 'packages')
-rw-r--r--packages/asset-buyer/CHANGELOG.json9
-rw-r--r--packages/instant/src/components/zero_ex_instant.tsx5
2 files changed, 12 insertions, 2 deletions
diff --git a/packages/asset-buyer/CHANGELOG.json b/packages/asset-buyer/CHANGELOG.json
index 7ebcd8c2f..5d6604ea9 100644
--- a/packages/asset-buyer/CHANGELOG.json
+++ b/packages/asset-buyer/CHANGELOG.json
@@ -1,5 +1,14 @@
[
{
+ "version": "2.2.0",
+ "changes": [
+ {
+ "note": "`getAssetBuyerForProvidedOrders` factory function now takes 3 args instead of 4",
+ "pr": 1187
+ }
+ ]
+ },
+ {
"version": "2.1.0",
"changes": [
{
diff --git a/packages/instant/src/components/zero_ex_instant.tsx b/packages/instant/src/components/zero_ex_instant.tsx
index 9018c9427..bf7cc9de5 100644
--- a/packages/instant/src/components/zero_ex_instant.tsx
+++ b/packages/instant/src/components/zero_ex_instant.tsx
@@ -79,7 +79,7 @@ export class ZeroExInstant extends React.Component<ZeroExInstantProps> {
// tslint:disable-next-line:no-floating-promises
asyncData.fetchAndDispatchToStore(this._store);
// tslint:disable-next-line:no-floating-promises
- this._flashErrorIfWrongNetwork(this._store.getState().network);
+ this._flashErrorIfWrongNetwork();
}
public render(): React.ReactNode {
@@ -92,8 +92,9 @@ export class ZeroExInstant extends React.Component<ZeroExInstantProps> {
);
}
- private readonly _flashErrorIfWrongNetwork = async (network: Network): Promise<void> => {
+ private readonly _flashErrorIfWrongNetwork = async (): Promise<void> => {
const msToShowError = 30000; // 30 seconds
+ const network = this._store.getState().network;
const networkOfProvider = await web3Wrapper.getNetworkIdAsync();
if (network !== networkOfProvider) {
const errorMessage = `Wrong network detected. Try switching to ${Network[network]}.`;