We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7ee348b commit 424c35cCopy full SHA for 424c35c
packages/cli/src/support/cosmos.rs
@@ -21,17 +21,21 @@ pub trait ResponseValuePicker {
21
22
impl ResponseValuePicker for TxCommitResponse {
23
fn pick(&self, event: &str, attribute: &str) -> String {
24
- self.deliver_tx
+ let value = self
25
+ .deliver_tx
26
.events
27
.iter()
28
.find(|e| e.kind == event)
29
.unwrap()
30
.attributes
31
- .find(|a| a.key == attribute)
32
+ .find(|a| a.key == base64::encode(attribute))
33
34
.value
- .clone()
35
+ .clone();
36
+
37
+ let value_bytes = base64::decode(value).unwrap();
38
+ String::from_utf8(value_bytes).unwrap()
39
}
40
41
0 commit comments