You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 9, 2021. It is now read-only.
Hello, maybe I am too newbie for this, but i can't find how to provide injectedWeb3Subprovider to the new ZeroEx instance. Is it a problem with the API ? Is it the right way to use it ?
Thank you
window.addEventListener('load', () => {
// Checking if Web3 has been injected by the browser (Mist/MetaMask)
if (typeof window['web3'] !== 'undefined') {
// Use the browser's ethereum provider
const web3: Web3 = window['web3'];
const injectedWeb3Subprovider: InjectedWeb3Subprovider = new InjectedWeb3Subprovider(web3);
new ZeroEx(injectedWeb3Subprovider, { networkId: 42 })
.getAvailableAddressesAsync()
.then(console.log)
} else {
console.log('No web3? You should consider trying MetaMask!')
}
});
ERROR in src/app/app.component.ts(41,20): error TS2345: Argument of type 'InjectedWeb3Subprovider' is not assignable to parameter of type 'Provider'.
Property 'sendAsync' is missing in type 'InjectedWeb3Subprovider'.
The text was updated successfully, but these errors were encountered:
Hello, maybe I am too newbie for this, but i can't find how to provide
injectedWeb3Subprovider
to thenew ZeroEx
instance. Is it a problem with the API ? Is it the right way to use it ?Thank you
The text was updated successfully, but these errors were encountered: