We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
TxResult is defined as such:
TxResult
/// Transaction result. #[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq)] pub struct TxResult { pub log: Option<String>, pub gas_wanted: Option<String>, pub gas_used: Option<String>, pub events: Vec<abci::Event>, }
The log field is defined as a string here, but I believe it's correct type should look something like this:
log
#[derive(Debug, Clone, Serialize, Deserialize)] struct Log { events: Vec<SubEvent>, } #[derive(Debug, Clone, Serialize, Deserialize)] struct SubEvent { attributes: Vec<Attribute>, #[serde(rename = "type")] type_string: String, } #[derive(Debug, Clone, Serialize, Deserialize)] struct Attribute { key: String, value: String, }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
TxResult
is defined as such:The
log
field is defined as a string here, but I believe it's correct type should look something like this:The text was updated successfully, but these errors were encountered: