Skip to content

Commit

Permalink
Fixes build.
Browse files Browse the repository at this point in the history
  • Loading branch information
esdrubal committed Aug 13, 2024
1 parent 67b8ac0 commit e2f6121
Show file tree
Hide file tree
Showing 11 changed files with 24 additions and 23 deletions.
1 change: 1 addition & 0 deletions Cargo.lock

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

Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
{
"programType": "contract",
"specVersion": "1",
"encodingVersion": "1",
"concreteTypes": [
{
"concreteTypeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0",
"type": "u64"
"type": "bool",
"concreteTypeId": "b760f44fa5965c2474a3b471467a22c43185152129295af588b022ae50b50903"
}
],
"configurables": [],
"encodingVersion": "1",
"metadataTypes": [],
"functions": [
{
"attributes": null,
"inputs": [],
"name": "main",
"output": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0"
"name": "test_function",
"output": "b760f44fa5965c2474a3b471467a22c43185152129295af588b022ae50b50903",
"attributes": null
}
],
"loggedTypes": [],
"messagesTypes": [],
"metadataTypes": [],
"programType": "script",
"specVersion": "1"
"configurables": []
}
3 changes: 2 additions & 1 deletion sway-lib-std/src/ecr.sw
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,9 @@ pub fn ed_verify(
buffer: public_key,
sig: __addr_of(signature),
hash: msg_hash,
len: 32,
) {
ed19 buffer sig hash i32;
ed19 buffer sig hash len;
err
};
// check the $err register to see if the `ed19` opcode succeeded
Expand Down
2 changes: 1 addition & 1 deletion sway-lib-std/src/execution.sw
Original file line number Diff line number Diff line change
Expand Up @@ -68,4 +68,4 @@ pub fn run_external2(load_target1: ContractId, load_target2: ContractId) -> ! {
sw hp ssp_saved i0;
}
__jmp_mem()
}
}
2 changes: 1 addition & 1 deletion templates/sway-predicate-test-rs/template/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ authors = ["{{authors}}"]
license = "Apache-2.0"

[dev-dependencies]
fuels = { version = "0.62", features = ["fuel-core-lib"] }
fuels = { version = "0.66", features = ["fuel-core-lib"] }
tokio = { version = "1.12", features = ["rt", "macros"] }

[[test]]
Expand Down
2 changes: 1 addition & 1 deletion templates/sway-script-test-rs/template/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ authors = ["{{authors}}"]
license = "Apache-2.0"

[dev-dependencies]
fuels = { version = "0.62", features = ["fuel-core-lib"] }
fuels = { version = "0.66", features = ["fuel-core-lib"] }
tokio = { version = "1.12", features = ["rt", "macros"] }

[[test]]
Expand Down
2 changes: 1 addition & 1 deletion templates/sway-test-rs/template/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ authors = ["{{authors}}"]
license = "Apache-2.0"

[dev-dependencies]
fuels = { version = "0.62.0", features = ["fuel-core-lib"] }
fuels = { version = "0.66.0", features = ["fuel-core-lib"] }
tokio = { version = "1.12", features = ["rt", "macros"] }

[[test]]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ fn main() -> bool {
};

asm(r1: 0, r2: 0, r3: 0) {
ldc r1 r2 r3;
ldc r1 r2 r3 i0;
}

asm(r1: 0, r2: 0, r3: 0, r4: 0) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ category = "fail"

# not: $()The GM (get-metadata) opcode, when called from an external context, will cause the VM to panic.

# check: ldc r1 r2 r3;
# check: ldc r1 r2 r3 i0;
# nextln: $()The LDC opcode cannot be used in a predicate.

# check: log r1 r2 r3 r4;
Expand Down
6 changes: 3 additions & 3 deletions test/src/ir_generation/tests/jmp_mem.sw
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ impl MyContract for Contract {
csiz length code_id;
// Save the old ssp
move ssp_saved ssp;
ldc code_id zero length;
ldc code_id zero length i0;
// Store the old ssp to MEM[$hp] so that we can jump to it.
// allocate a word the stack
addi word zero i64;
Expand All @@ -40,15 +40,15 @@ impl MyContract for Contract {
// check: pub entry fn test_function
// not: local
// check: csiz length code_id
// check: ldc code_id zero length,
// check: ldc code_id zero length i0,
// check: jmp_mem

// ::check-asm::

// regex: REG=.r\d+\b

// check: csiz $(len=$REG) $REG
// check: ldc $REG $$zero $len
// check: ldc $REG $$zero $len i0
// check: lw $(target=$REG) $$hp i0
// check: sub $(jmp_target_4=$REG) $target $$is
// check: divi $(jmp_target=$REG) $jmp_target_4 i4
Expand Down
5 changes: 2 additions & 3 deletions test/src/sdk-harness/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,10 @@ fuel-core = { version = "0.31.0", default-features = false }
fuel-core-client = { version = "0.31.0", default-features = false }

# Dependencies from the `fuel-vm` repository:
fuel-vm = { version = "0.55.0", features = ["random"] }
fuel-vm = { version = "0.56.0", features = ["random"] }

# Dependencies from the `fuels-rs` repository:
fuels = { git = "https://github.com/FuelLabs/fuels-rs", branch = "esdrubal/abi_changes2", features = ["fuel-core-lib"]}
#fuels = { version = "0.65.1", features = ["fuel-core-lib"] }
fuels = { version = "0.66.0", features = ["fuel-core-lib"] }

hex = "0.4.3"
paste = "1.0.14"
Expand Down

0 comments on commit e2f6121

Please sign in to comment.