Skip to content
This repository was archived by the owner on Mar 5, 2025. It is now read-only.
This repository was archived by the owner on Mar 5, 2025. It is now read-only.

Implement at Contract the parsing of the logs similar to new ethers.Interface(ABI).parseLog(...) #7065

Open
@Muhammad-Altabba

Description

@Muhammad-Altabba

Currently the Contract can decode its own events. But it is helpful to enable parsing a provided logs data, similar to new ethers.Interface(ABI).parseLog(...).

(This feature is needed at https://github.com/web3/web3-plugin-zksync/blob/758df6f2cf324a7c8e17730672f2ce0a831d407b/src/utils.ts#L801)

Additionally add a static method to the Contract class similar to:

contractFunctionId(value: string): string {
	return web3Utils.keccak256(web3Utils.utf8ToBytes(value));
}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions