Comments (12)
The wiki should be updated to reflect this btw (also the fact that config
is required for the ZeroEx
constructor in newer versions)
from 0x-monorepo.
Thanks for the heads up @justinkchen! Going to update the wiki today!
from 0x-monorepo.
Hi Justin, in what context are you trying to get the EtherToken address?
Re: wiki, what part of the wiki is currently out of date?
from 0x-monorepo.
Hi @fabioberger , the wiki (https://0xproject.com/wiki) shows to get the WETH_ADDRESS via this call: const WETH_ADDRESS = await zeroEx.etherToken.getContractAddressAsync();
, and the EXCHANGE_ADDRESS via: const EXCHANGE_ADDRESS = await zeroEx.exchange.getContractAddressAsync();
.
Looking through the latest version (0.30.1) of 0x.js, the EXCHANGE_ADDRESS has changed to zeroEx.exchange.getContractAddress()
, but the etherToken
method has been removed.
Also, the wiki says to instantiate ZeroEx like this:
// Instantiate 0x.js instance
const zeroEx = new ZeroEx(provider);
but the ZeroEx constructor has a required config
parameter in latest versions too now
from 0x-monorepo.
P.S. I know that the docs are up to date here: https://0xproject.com/docs/0xjs, but just saying that the wiki is no longer compatible with the docs
from 0x-monorepo.
thanks! :)
from 0x-monorepo.
@fabioberger whenever I try to do any kind of methods on the ethertoken contract, I keep getting InvalidNumberOfSolidityArgs
as an error. Is there something wrong with the smart contract that is deployed?
from 0x-monorepo.
I think the issue is coming from the BigNumber not being treated as a single variable but instead being an array. Any ideas as to why? Is it a poor installation or something?
from 0x-monorepo.
from 0x-monorepo.
here is the actual method call await zeroEx.token.setAllowanceAsync( tokenContractAddress, account, zeroExProxyContractAddress, new BigNumber(0), );
and this is on 0.30.1 version of 0x.js
from 0x-monorepo.
I found the issue. It happens when trying to use the method while statically serving the files (whether through serve -s build
or express.static
) still can't find the solution though...
from 0x-monorepo.
@justinkchen can you try with BigNumber.js version ~4.1.0? Also, let's continue this conversation at chat.0xproject.com #dev channel.
from 0x-monorepo.
Related Issues (20)
- sol-compiler: build fails behind proxy since #1596 HOT 2
- sol-tracing-utils: consider changing the solidity parser HOT 1
- sol-compiler: fails on file with structs only HOT 2
- @0x/utils: Extra space in `provider.send` varies HOT 4
- @0x/contract-wrappers: `marketBuyOrdersFillOrKill` incorrect ABI encoding HOT 2
- [sol-compiler] New release of sol-compiler?
- Buy Contract - Call fails after payment token approval
- @0x/sol-compiler bug: sol-compiler not recognizing pragma experimental 0.5.0 HOT 2
- @0x/staking wrong dependency HOT 2
- sol-compiler does not recognize solc versions after 0.5.12 HOT 1
- Using sol-trace with external, existing contracts as interfaces HOT 3
- command for new package? HOT 2
- Instant revamp bake-off HOT 23
- 0x-contract-wrappers & 0x/abi-gen: TypeError: Cannot instantiate typing.Union HOT 2
- sol-compiler update link for solc binary downloads HOT 2
- Issues with installing project dependencies on MacOS Catalina HOT 3
- asset-swapper: CryptoCom is missing from market operation types HOT 2
- [abi-gen] [base-contract] Crypto algorithms blocking javascript main thread HOT 2
- [sol-compiler] AST is not present in the output when requested HOT 2
- python: getting signature using private key HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from 0x-monorepo.