You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
From what I've been reading adding the ' static is mandatory for now #217. The problem is that this that now the functions return types don't match because R has a 'static lifetime in the tests. If I don't make it static then I have the problem of not living long enough.
How could I deal with this issue? Being an external crate I can't modify the code to change the return types depending of if testing or not
The text was updated successfully, but these errors were encountered:
Repository owner
locked and limited conversation to collaborators
Nov 4, 2021
Hi,
I have this struct in my module
Contract
is a generic struct from an exernal crateweb3::contract::Contract
I've tried mocking the struct as:
From what I've been reading adding the
' static
is mandatory for now #217. The problem is that this that now the functions return types don't match becauseR
has a'static
lifetime in the tests. If I don't make it static then I have the problem of not living long enough.How could I deal with this issue? Being an external crate I can't modify the code to change the return types depending of if testing or not
The text was updated successfully, but these errors were encountered: