Skip to content

Commit

Permalink
feat: remove unecessery code
Browse files Browse the repository at this point in the history
  • Loading branch information
karlem committed Nov 15, 2024
1 parent 50d7e06 commit a16ec25
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions fendermint/vm/interpreter/src/fvm/observe.rs
Original file line number Diff line number Diff line change
Expand Up @@ -146,11 +146,9 @@ mod tests {

#[test]
fn test_emit() {
use fendermint_crypto::SecretKey;
use fvm_ipld_encoding::RawBytes;
use fvm_shared::address::Address;
use fvm_shared::econ::TokenAmount;
use rand::thread_rng;

let message = Message {
version: 1,
Expand Down Expand Up @@ -181,16 +179,11 @@ mod tests {
config_number: 3,
});

let mut r = thread_rng();
let secret_key = SecretKey::random(&mut r);
let pk = secret_key.public_key().serialize();
let addr = Address::new_secp256k1(&pk).unwrap();

emit(CheckpointSigned {
role: CheckpointSignedRole::Own,
height: 1,
hash: HexEncodableBlockHash(hash.clone()),
validator: addr,
validator: Address::new_id(1),
});
}
}

0 comments on commit a16ec25

Please sign in to comment.