We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c622438 commit 6f18e11Copy full SHA for 6f18e11
ethabi/src/function.rs
@@ -31,7 +31,7 @@ pub struct Function {
31
#[deprecated(note = "The constant attribute was removed in Solidity 0.5.0 and has been \
32
replaced with stateMutability.")]
33
/// Constant function.
34
- #[cfg_attr(feature = "full-serde", serde(default))]
+ #[cfg_attr(feature = "full-serde", serde(skip_serializing_if = "Option::is_none"))]
35
pub constant: Option<bool>,
36
/// Whether the function reads or modifies blockchain state
37
#[cfg_attr(feature = "full-serde", serde(rename = "stateMutability", default))]
0 commit comments