Skip to content

Commit

Permalink
fix: set valid fromBlock filter to check creation tx hash from the lo…
Browse files Browse the repository at this point in the history
…gs (#975)

Co-authored-by: Marko Arambasic <[email protected]>
  • Loading branch information
kiriyaga-txfusion and kiriyaga authored Apr 4, 2024
1 parent 76362bf commit d381d11
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export function inferConstructorArgs(txInput: string, creationCode: string) {
*/
export async function getContractCreationTxHash(provider: zk.Provider, address: string, topic: string): Promise<any> {
const params = {
fromBlock: 0,
fromBlock: 'earliest',
toBlock: 'latest',
address,
topics: [`0x${keccak256(Buffer.from(topic)).toString('hex')}`],
Expand Down

0 comments on commit d381d11

Please sign in to comment.