-
Notifications
You must be signed in to change notification settings - Fork 226
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix web3 and ethers types #158
Conversation
CLA Assistant Lite All Contributors have signed the CLA. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
any
is not your friend 🤣
@@ -99,15 +98,15 @@ class Web3Adapter implements EthAdapter { | |||
return getGnosisSafeProxyFactoryContractInstance(safeVersion, proxyFactoryContract) | |||
} | |||
|
|||
getContract(address: string, abi: AbiItem[]): any { | |||
return new this.#web3.eth.Contract(abi, address) | |||
getContract(address: string, abi: AbiItem | AbiItem[], options?: ContractOptions): any { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this really return any
? 👀
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems like the type is 'TODO:'
on web3's end. It's possible to use ReturnType<typeof this.#web3.eth.Contract>
to infer it I think. I'll resolve this, however, as it is not properly typed by a third party.
Remove --stream Try compiling hardhat in postinstall Restore --stream
Chore: use yarn cache in the CI script
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for discussing the remaining issues with me. Looks great!
What it solves
Resolves #138
How this PR fixes it
any
type fromweb3
andethers
variablesAbiItem
local typedeterministicDeployment
property fromERC20Mintable
contract deployment (hardhat)