Skip to content

Commit

Permalink
Fix review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Cashmaney committed May 29, 2023
1 parent d0c4ff8 commit 39ba517
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 12 deletions.
1 change: 0 additions & 1 deletion cosmwasm/enclaves/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion cosmwasm/enclaves/execute/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ enclave_contract_engine = { path = "../shared/contract-engine" }
enclave_crypto = { path = "../shared/crypto" }
enclave_utils = { path = "../shared/utils" }
enclave_cosmos_types = { path = "../shared/cosmos-types", optional = true }
cosmos_proto = { path = "../shared/cosmos-proto" }

serde = { git = "https://github.com/mesalock-linux/serde-sgx", features = [
"derive"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,6 @@ pub fn verify_reg_msg(certificate: &[u8]) -> bool {
let next = verified_msgs.get_next();

let result = if let Some(msg) = next {
// I assume @assaf will add the message type to the verified messages, so I'm going to leave this here for now
// without a check - it will fail in the parse either way

// if !check_message_is_reg(&msg) {
// error!("Error failed to validate registration message - 0x7535");
// false
// }

match cosmos_proto::registration::v1beta1::msg::RaAuthenticate::parse_from_bytes(&msg) {
Ok(ra_msg) => {
if ra_msg.certificate == certificate {
Expand Down
5 changes: 3 additions & 2 deletions cosmwasm/enclaves/shared/block-verifier/src/wasm_messages.rs
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,9 @@ pub mod tests {

let tx = cosmos_proto::registration::v1beta1::msg::RaAuthenticate::parse_from_bytes(
tx_bytes.as_slice(),
)
.unwrap();
);

assert!(tx.is_ok());
}

pub fn check_parse_reg_from_tx() {
Expand Down

0 comments on commit 39ba517

Please sign in to comment.