Skip to content

🧪 Test helper functions #228

@jtfirek

Description

@jtfirek

The way we are using the helper functions in the new mocked test will not catch bugs introduced in helper functions like prepareTransaction.

expect(spy).toHaveBeenCalledWith(
rpcUrl,
buildFetchInit(
buildRPCPostBody('eth_call', [prepareTransaction(data), 'latest']),
),
);

We need to make a test for testing the helpers like:
prepareTransaction
buildRPCPostBody
toChecksumAddress
cleanLog
Lmk what other helpers need to be tested @dawsbot

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions