Skip to content

cannot infer type #16

@EthereumDevtech

Description

@EthereumDevtech

I have two versions of function implementation

https://gist.github.com/EthereumDevtech/f9e056d2429055d078f13c1160418b78

This (trigger_a) worked well but I needed to call this function in super high frequent.
So I made generic style to reuse provider (trigger_b)

Then I got this

error[E0282]: type annotations needed
|
| let bundle = provider
| ____^
| | .bundle_builder()
| | .add_transaction(tx_request, false)
| | .await
| |
^ cannot infer type

Would you kindly help me?
Thanks in advance

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