Skip to content

Commit

Permalink
fix code in test mode
Browse files Browse the repository at this point in the history
  • Loading branch information
steelgeek091 committed Apr 12, 2024
1 parent 2e989e0 commit bdfb515
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion crates/rooch-framework-tests/src/binding_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ impl RustBindingTest {
l1_block: L1BlockWithBody,
) -> TxContext {
let max_gas_amount = GasConfig::DEFAULT_MAX_GAS_AMOUNT * 1000;
let tx_hash = l1_block.block.tx_hash();
let tx_hash = l1_block.block.tx_hash().expect("get tx_hash failed");
let tx_size = l1_block.block.tx_size();
TxContext::new(
self.sequencer.into(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ fn test_validate() {
let tx_data = RoochTransactionData::new_for_test(sender, sequence_number, action);
let tx = keystore.sign_transaction(&sender, tx_data, None).unwrap();
let auth_info = tx.authenticator_info().unwrap();
let move_tx: MoveOSTransaction = tx.into();
let move_tx: MoveOSTransaction = tx.try_into().unwrap();

native_validator
.validate(&move_tx.ctx, auth_info.authenticator.payload)
Expand Down

0 comments on commit bdfb515

Please sign in to comment.