Skip to content

Commit

Permalink
fixing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
xunilrj committed Dec 10, 2024
1 parent e88ae58 commit 4a625ca
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -251,62 +251,74 @@
{
"name": "BOOL",
"concreteTypeId": "b760f44fa5965c2474a3b471467a22c43185152129295af588b022ae50b50903",
"offset": 240
"offset": 240,
"indirect": false
},
{
"name": "U8",
"concreteTypeId": "c89951a24c6ca28c13fd1cfdc646b2b656d69e61a92b91023be7eb58eb914b6b",
"offset": 352
"offset": 352,
"indirect": false
},
{
"name": "U16",
"concreteTypeId": "29881aad8730c5ab11d275376323d8e4ff4179aae8ccb6c13fe4902137e162ef",
"offset": 296
"offset": 296,
"indirect": false
},
{
"name": "U32",
"concreteTypeId": "d7649d428b9ff33d188ecbf38a7e4d8fd167fa01b2e10fe9a8f9308e52f1d7cc",
"offset": 336
"offset": 336,
"indirect": false
},
{
"name": "U64",
"concreteTypeId": "1506e6f44c1d6291cdf46395a8e573276a4fa79e8ace3fc891e092ef32d1b0a0",
"offset": 344
"offset": 344,
"indirect": false
},
{
"name": "U256",
"concreteTypeId": "1b5759d94094368cfd443019e7ca5ec4074300e544e5ea993a979f5da627261e",
"offset": 304
"offset": 304,
"indirect": false
},
{
"name": "B256",
"concreteTypeId": "7c5ee1cecf5f8eacd1284feb5f0bf2bdea533a51e2f0c9aabe9236d335989f3b",
"offset": 208
"offset": 208,
"indirect": false
},
{
"name": "STR_4",
"concreteTypeId": "94f0fa95c830be5e4f711963e83259fe7e8bc723278ab6ec34449e791a99b53a",
"offset": 280
"offset": 280,
"indirect": false
},
{
"name": "TUPLE",
"concreteTypeId": "e0128f7be9902d1fe16326cafe703b52038064a7997b03ebfc1c9dd607e1536c",
"offset": 288
"offset": 288,
"indirect": false
},
{
"name": "ARRAY",
"concreteTypeId": "d9fac01ab38fe10950758ae9604da330d6406a71fda3ef1ea818121261132d56",
"offset": 192
"offset": 192,
"indirect": false
},
{
"name": "STRUCT",
"concreteTypeId": "563310524b4f4447a10d0e50556310253dfb3b5eb4b29c3773222b737c8b7075",
"offset": 264
"offset": 264,
"indirect": false
},
{
"name": "ENUM",
"concreteTypeId": "37cd1cba311039a851ac8bfa614cc41359b4ad95c8656fcef2e8f504fe7a1272",
"offset": 248
"offset": 248,
"indirect": false
}
]
}
5 changes: 3 additions & 2 deletions forc-plugins/forc-client/tests/deploy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1198,12 +1198,13 @@ async fn call_with_forc_generated_overrides(node_url: &str, contract_id: Contrac
// we are ensuring forc-deploy indeed generated the files we are basing our
// tests below.
let generated_loader_abi_path = tmp_dir.path().join("out/deployed_script-loader-abi.json");
let generated_loader_abi = fs::read_to_string(generated_loader_abi_path).unwrap();
let generated_loader_abi = fs::read_to_string(&generated_loader_abi_path).unwrap();

// this path is basically, `forc-plugins/forc-client/test/data/deployed_script/deployed_script-loader-abi.json`.
let used_loader_abi_path = project_dir.join("deployed_script-loader-abi.json");
let used_loader_abi = fs::read_to_string(used_loader_abi_path).unwrap();
let used_loader_abi = fs::read_to_string(&used_loader_abi_path).unwrap();

dbg!(&generated_loader_abi_path, &used_loader_abi_path);
pretty_assertions::assert_eq!(generated_loader_abi, used_loader_abi);

let generated_loader_bin = tmp_dir.path().join("out/deployed_script-loader.bin");
Expand Down

0 comments on commit 4a625ca

Please sign in to comment.