Skip to content

Commit

Permalink
consistent receipt with cosmos
Browse files Browse the repository at this point in the history
  • Loading branch information
rnbguy committed Jan 9, 2025
1 parent e529c9d commit 91e9218
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,14 @@ where
let receipt_status = encoding.decode(&output).map_err(Chain::raise_error)?;

// TODO(rano): are these bytes correct?
let receipt_bytes = if receipt_status { vec![0x1] } else { vec![0x0] };
let receipt_bytes = if receipt_status {
// 0x01 -> "AQ=="
br#"{"result":"AQ=="}"#
} else {
// 0x00 -> "AA=="
br#"{"result":"AA=="}"#
}
.to_vec();

Ok((receipt_bytes, dummy_proof))
}
Expand Down

0 comments on commit 91e9218

Please sign in to comment.