Skip to content

Commit

Permalink
Merge branch 'master' into xunilrj/forc-test-configurable
Browse files Browse the repository at this point in the history
  • Loading branch information
kayagokalp authored Nov 20, 2024
2 parents 5a9dd14 + 3639c54 commit 3a7866f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions forc-util/src/bytecode.rs
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,8 @@ mod test {

#[test]
fn test_get_bytecode_id_happy() {
// These binary files were generated from `examples/configurable_constants` and `examples/counter`
// using `forc build` and `forc build --release` respectively.
let bytecode_id: String =
get_bytecode_id("tests/fixtures/bytecode/debug-counter.bin").expect("bytecode id");
assert_eq!(
Expand Down Expand Up @@ -150,6 +152,8 @@ mod test {

#[test]
fn test_get_bytecode_id_missing_configurable_offset() {
// This bytecode file was generated from `examples/configurable_constants` using an older version of the
// compiler that did not include the configurables section offset in the preamble.
let result = get_bytecode_id(
"tests/fixtures/bytecode/debug-configurable_constants-missing-offset.bin",
);
Expand Down

0 comments on commit 3a7866f

Please sign in to comment.