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
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