aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2018-07-17 21:33:49 +0800
committerFabio Berger <me@fabioberger.com>2018-07-17 21:33:49 +0800
commitf2393de59bf77806281ebabfad9f4500dd183f4a (patch)
treefe51abeed5eff0b1d48d79d9033b06999123855c
parent94ea7cc45104f9225bcb1d1905ffc4f2dbf27348 (diff)
downloaddexon-sol-tools-f2393de59bf77806281ebabfad9f4500dd183f4a.tar
dexon-sol-tools-f2393de59bf77806281ebabfad9f4500dd183f4a.tar.gz
dexon-sol-tools-f2393de59bf77806281ebabfad9f4500dd183f4a.tar.bz2
dexon-sol-tools-f2393de59bf77806281ebabfad9f4500dd183f4a.tar.lz
dexon-sol-tools-f2393de59bf77806281ebabfad9f4500dd183f4a.tar.xz
dexon-sol-tools-f2393de59bf77806281ebabfad9f4500dd183f4a.tar.zst
dexon-sol-tools-f2393de59bf77806281ebabfad9f4500dd183f4a.zip
Make assetData a static property and add to CHANGELOG
-rw-r--r--packages/0x.js/CHANGELOG.json3
-rw-r--r--packages/0x.js/src/0x.ts2
2 files changed, 4 insertions, 1 deletions
diff --git a/packages/0x.js/CHANGELOG.json b/packages/0x.js/CHANGELOG.json
index 9419311dd..849432c5a 100644
--- a/packages/0x.js/CHANGELOG.json
+++ b/packages/0x.js/CHANGELOG.json
@@ -36,6 +36,9 @@
{
"note": "Remove stateLayer config from OrderWatcher. It now always operates on the latest block",
"pr": 875
+ },
+ {
+ "note": "Export ZeroEx.assetData with methods to decode/encode AssetData fields found in 0x orders"
}
]
},
diff --git a/packages/0x.js/src/0x.ts b/packages/0x.js/src/0x.ts
index 11ceb7c89..e321b4020 100644
--- a/packages/0x.js/src/0x.ts
+++ b/packages/0x.js/src/0x.ts
@@ -38,7 +38,7 @@ export class ZeroEx {
/**
* A set of methods to easily decode/encode assetData fields found in 0x orders.
*/
- public assetData = assetDataUtils;
+ public static assetData = assetDataUtils;
/**
* An instance of the ExchangeWrapper class containing methods for interacting with the 0x Exchange smart contract.
*/