-
Notifications
You must be signed in to change notification settings - Fork 55
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
Ethers v6 #483
base: master
Are you sure you want to change the base?
Ethers v6 #483
Conversation
@@ -42,15 +42,15 @@ const main = async () => { | |||
{ | |||
name: 'hardhat', | |||
chainId: 31337, | |||
rpcUrl: provider.connection.url, | |||
rpcUrl: provider._getConnection().url, |
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.
this is kinda weird.. we shouldn't need to use _
methods.. is there nothing else with this info on the object..?
packages/account/src/account.ts
Outdated
@@ -82,11 +82,11 @@ class Chain0Reader implements commons.reader.Reader { | |||
return undefined | |||
} | |||
|
|||
async nonce(_wallet: string, _space: ethers.BigNumberish): Promise<ethers.BigNumberish> { | |||
return ethers.constants.Zero | |||
async nonce(_wallet: string, _space: BigIntish): Promise<bigint> { |
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.
ethers still has the ethers.BigNumberish
type, but now it uses native bigInt or strings ..
Our response type is now Promise<bigint>
... what is bigint
..? Im just wondering what is most sensible return type..
… to wrap the WalletRequestHandler response data as JsonRpcResponse
…een older versions of sequence.js
No description provided.