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
warning: use of deprecated field `ethabi::Function::constant`: The constant attribute was removed in Solidity 0.5.0 and has been replaced with stateMutability.
|
| constant: None,
| ^^^^^^^^^^^^^^
|
= note: `#[warn(deprecated)]` on by default
the constant field has been marked deprecated in favor of state_mutability for the Function struct. However, the field is still required to instantiate the struct, so we have to use it.
The text was updated successfully, but these errors were encountered:
Hmm, that is annoying... For now, you could #[allow(deprecated)], but I agree that the development ergonomics around this is not great.
I think the correct solution would be to remove it for the Function struct, but allow it at de-serialization time (converting it to the appropirate state_mutability value).
the
constant
field has been marked deprecated in favor ofstate_mutability
for theFunction
struct. However, the field is still required to instantiate the struct, so we have to use it.The text was updated successfully, but these errors were encountered: