Skip to content

Commit

Permalink
Update to latest fuel-vm and next fuel-core
Browse files Browse the repository at this point in the history
  • Loading branch information
Dentosal committed May 30, 2022
1 parent ca585b9 commit f3f1f25
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions Cargo.toml
Expand Up @@ -7,7 +7,7 @@ edition = "2021"
clap = { version = "3.1", features = ["env", "derive"] }
# fuel-gql-client = { version = "0.6" }
fuel-types = { version = "0.3", features = ["serde-types"] }
fuel-vm = { version = "0.9", features = ["serde"] }
fuel-vm = { version = "0.11", features = ["serde"] }
serde_json = "1.0"
shellfish = { version = "0.6.0", features = ["rustyline", "async", "tokio"] }
surf = "2.0.0"
Expand All @@ -22,11 +22,11 @@ portpicker = "0.1.1"

[build-dependencies.fuel-core]
git = "https://github.com/FuelLabs/fuel-core"
branch = "debugging-profiling-wip"
branch = "leviathanbeak/async-graphql-upgrade"
default-features = false
# path = "../fuel-core/fuel-core"

[dependencies.fuel-gql-client]
git = "https://github.com/FuelLabs/fuel-core"
branch = "debugging-profiling-wip"
# branch = "debugging-profiling-wip"
# path = "../fuel-core/fuel-client"
10 changes: 5 additions & 5 deletions src/main.rs
Expand Up @@ -170,7 +170,7 @@ async fn cmd_registers(state: &mut State, mut args: Vec<String>) -> Result<(), B
for r in 0..VM_REGISTER_COUNT {
let value = state
.client
.register(&state.session_id, r.try_into().unwrap())
.register(&state.session_id, r)
.await?;
println!("reg[{:#x}] = {:<8} # {}", r, value, register_name(r));
}
Expand All @@ -180,7 +180,7 @@ async fn cmd_registers(state: &mut State, mut args: Vec<String>) -> Result<(), B
if v < VM_REGISTER_COUNT {
let value = state
.client
.register(&state.session_id, v.try_into().unwrap())
.register(&state.session_id, v)
.await?;
println!("reg[{:#02x}] = {:<8} # {}", v, value, register_name(v));
} else {
Expand All @@ -190,7 +190,7 @@ async fn cmd_registers(state: &mut State, mut args: Vec<String>) -> Result<(), B
} else if let Some(index) = names::register_index(arg) {
let value = state
.client
.register(&state.session_id, index.try_into().unwrap())
.register(&state.session_id, index)
.await?;
println!("reg[{:#02x}] = {:<8} # {}", index, value, arg);
} else {
Expand Down Expand Up @@ -226,8 +226,8 @@ async fn cmd_memory(state: &mut State, mut args: Vec<String>) -> Result<(), Box<
.client
.memory(
&state.session_id,
offset.try_into().unwrap(),
limit.try_into().unwrap(),
offset,
limit,
)
.await?;

Expand Down

0 comments on commit f3f1f25

Please sign in to comment.