Skip to content

Commit

Permalink
#466 fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
satran004 committed Nov 10, 2024
1 parent d9a4438 commit 50d9315
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public class AuxiliaryDataTest {

@Test
public void getAuxiliaryDataHash_checkKeysOrder_whenMetadataIsSet() throws Exception {
JsonNode json = loadJsonMetadata("json-4");
JsonNode json = loadJsonMetadata("json-1");
Metadata metadata = JsonNoSchemaToMetadataConverter.jsonToCborMetadata(json.toString());

AuxiliaryData auxiliaryData = AuxiliaryData.builder()
Expand Down
17 changes: 17 additions & 0 deletions transaction-spec/src/test/resources/json-metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"json-1": {
"17802948329108123211": {},
"945845007538436815": "0x4ebc4ea3b43bb0cc76bb326f17a30d8f",
"1351859328329939190": {
"0x0e": "0x3bdefda92265",
"0x14ff8d": -13139667
},
"7505166164059511819": "rceHlUxXlWmZJcxYd",
"7274669146951118819": -1481497267,
"1302243434517352162": [
"UJB3",
-16236436
]
}

}

0 comments on commit 50d9315

Please sign in to comment.