Skip to content

Commit

Permalink
Release 0.0.7
Browse files Browse the repository at this point in the history
compatible to latest libra
  • Loading branch information
liangping committed May 12, 2020
1 parent e42df10 commit 139d909
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 12 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "move-runner"
version = "0.0.6"
version = "0.0.7"
authors = ["Ping <[email protected]>"]
edition = "2018"
description = "A Move VM simulator which allows developers to compile and run Move script/module on local computer. "
Expand Down
14 changes: 5 additions & 9 deletions src/commands/run.rs
Original file line number Diff line number Diff line change
@@ -1,15 +1,11 @@
use bytecode_verifier::verifier::VerifiedModule;
use libra_types::transaction::{parse_as_transaction_argument, TransactionArgument};
use move_core_types::{
gas_schedule::{GasAlgebra, GasUnits},
};
use move_core_types::gas_schedule::{GasAlgebra, GasUnits};
use move_vm_runtime::MoveVM;
use move_vm_state::execution_context::{ExecutionContext, TransactionExecutionContext};
use vm::{
errors::VMResult,
gas_schedule,
transaction_metadata::TransactionMetadata,
};
use move_vm_types::gas_schedule::zero_cost_schedule;
use move_vm_types::transaction_metadata::TransactionMetadata;
use vm::errors::VMResult;

use glob::glob;

Expand Down Expand Up @@ -83,7 +79,7 @@ impl Command for RunCommand {
let move_vm = MoveVM::new();
let mut ctx =
TransactionExecutionContext::new(GasUnits::new(600), &m_runner.datastore);
let gas_schedule = gas_schedule::zero_cost_schedule();
let gas_schedule = zero_cost_schedule();

let mut txn_data = TransactionMetadata::default();
txn_data.sender = cfg.address();
Expand Down
4 changes: 2 additions & 2 deletions src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use libra_crypto::{
traits::*,
};
use libra_crypto::hash::CryptoHash;
use libra_types::{account_address::AccountAddress, transaction::Transaction};
use libra_types::{account_address::AccountAddress, account_address::from_public_key, transaction::Transaction};
use libra_types::transaction::{RawTransaction, SignedTransaction};
use serde::{Deserialize, Serialize};
use stdlib::StdLibOptions;
Expand Down Expand Up @@ -146,7 +146,7 @@ impl Default for DevTransaction {
fn default() -> Self {
let (private_key, keypair_public_key) = generate_keypair();
Self {
address: AccountAddress::from_public_key(&keypair_public_key),
address: from_public_key(&keypair_public_key),
sequence_number: 0,
keypair_private_key: private_key.to_encoded_string().unwrap(),
keypair_public_key,
Expand Down

0 comments on commit 139d909

Please sign in to comment.