-
Notifications
You must be signed in to change notification settings - Fork 19
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
feat: replace ethers with viem #1037
base: develop
Are you sure you want to change the base?
Conversation
CDB-2128 Nonce errors in Clay AND QA CAS
Coordinator: dbrowning Investigator: dbrowning Clay CAS:
QA CAS:
|
@@ -1,13 +1,11 @@ | |||
export class Transaction { | |||
chain: string | |||
txHash: string | |||
blockNumber: number | |||
blockTimestamp: number | |||
blockNumber: 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.
Mind if I ask you what happened to the timestamp?
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's not part of the transaction receipt from viem. Still need to figure out if there's a way for me to get that. Possibly by grabbing the block.
|
||
constructor(config: Config, private readonly wallet: ethers.Wallet) { | ||
this.useSmartContractAnchors = config.useSmartContractAnchors | ||
constructor(config: Config, private readonly provider: PublicClient, private readonly wallet: WalletClient, private readonly walletAddress: Address) { |
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 is safer IMO to not mix private readonly
constructor properties with property declarations like on 161-166. It makes it complicated to see what is actually available. IMO.
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.
I agree, will adjust that.
Hey @dbcfd any news on the PR? |
No description provided.