From e4ae991b211fcafdd1e217723e64b999535853dd Mon Sep 17 00:00:00 2001 From: George Kudrayvtsev Date: Mon, 9 Oct 2023 14:26:04 -0700 Subject: [PATCH] Amend fixtures to reflect the new format --- .../tests/fixtures/test-jsons/get-events.json | 16 ++++---------- .../src/rpc/fixtures/event_response.json | 21 ++++++------------- 2 files changed, 10 insertions(+), 27 deletions(-) diff --git a/cmd/crates/soroban-test/tests/fixtures/test-jsons/get-events.json b/cmd/crates/soroban-test/tests/fixtures/test-jsons/get-events.json index eb04c2fda..1fe8e42f3 100644 --- a/cmd/crates/soroban-test/tests/fixtures/test-jsons/get-events.json +++ b/cmd/crates/soroban-test/tests/fixtures/test-jsons/get-events.json @@ -12,9 +12,7 @@ "AAAABQAAAAdDT1VOVEVSAA==", "AAAABQAAAAlpbmNyZW1lbnQAAAA=" ], - "value": { - "xdr": "AAAAAQAAAAE=" - } + "value": "AAAAAQAAAAE=" }, { "type": "system", @@ -27,9 +25,7 @@ "AAAABQAAAAh0cmFuc2Zlcg==", "AAAAAQB6Mcc=" ], - "value": { - "xdr": "AAAABQAAAApHaWJNb255UGxzAAA=" - } + "value": "AAAABQAAAApHaWJNb255UGxzAAA=" }, { "type": "contract", @@ -42,9 +38,7 @@ "AAAABQAAAAh0cmFuc2Zlcg==", "AAAAAQB6Mcc=" ], - "value": { - "xdr": "AAAABQAAAApHaWJNb255UGxzAAA=" - } + "value": "AAAABQAAAApHaWJNb255UGxzAAA=" }, { "type": "system", @@ -57,9 +51,7 @@ "AAAABQAAAAh0cmFuc2Zlcg==", "AAAAAQB6Mcc=" ], - "value": { - "xdr": "AAAABQAAAApHaWJNb255UGxzAAA=" - } + "value": "AAAABQAAAApHaWJNb255UGxzAAA=" } ] } diff --git a/cmd/soroban-cli/src/rpc/fixtures/event_response.json b/cmd/soroban-cli/src/rpc/fixtures/event_response.json index e034e2b7b..6f520fdfd 100644 --- a/cmd/soroban-cli/src/rpc/fixtures/event_response.json +++ b/cmd/soroban-cli/src/rpc/fixtures/event_response.json @@ -10,39 +10,30 @@ "AAAABQAAAAh0cmFuc2Zlcg==", "AAAAAQB6Mcc=" ], - "value": { - "xdr": "AAAABQAAAApHaWJNb255UGxzAAA=" - } + "value": "AAAABQAAAApHaWJNb255UGxzAAA=" }, { "eventType": "contract", "ledger": "43601284", "ledgerClosedAt": "2022-11-16T16:10:41Z", - "contractId": "CDR6QKTWZQYW6YUJ7UP7XXZRLWQPFRV6SWBLQS4ZQOSAF4BOUD77OO5Z" - , + "contractId": "CDR6QKTWZQYW6YUJ7UP7XXZRLWQPFRV6SWBLQS4ZQOSAF4BOUD77OO5Z", "id": "0164090849041387521-0000000003", "pagingToken": "164090849041387521-3", "topic": [ "AAAABQAAAAh0cmFuc2Zlcg==", "AAAAAQB6Mcc=" ], - "value": { - "xdr": "AAAABQAAAApHaWJNb255UGxzAAA=" - } + "value": "AAAABQAAAApHaWJNb255UGxzAAA=" }, { "eventType": "system", "ledger": "43601285", "ledgerClosedAt": "2022-11-16T16:10:41Z", - "contractId": "CCR6QKTWZQYW6YUJ7UP7XXZRLWQPFRV6SWBLQS4ZQOSAF4BOUD77OTE2" - , + "contractId": "CCR6QKTWZQYW6YUJ7UP7XXZRLWQPFRV6SWBLQS4ZQOSAF4BOUD77OTE2", "id": "0164090849041387521-0000000003", "pagingToken": "164090849041387521-3", "topic": [ "AAAABQAAAAh0cmFuc2Zlcg==", "AAAAAQB6Mcc=" ], - "value": { - "xdr": "AAAABQAAAApHaWJNb255UGxzAAA=" - } - } - ] + "value": "AAAABQAAAApHaWJNb255UGxzAAA=" + }] } \ No newline at end of file