From cc6490e9f621f6270f10f54ab9e181dab1a480ac Mon Sep 17 00:00:00 2001 From: chowbao Date: Wed, 21 Feb 2024 15:53:43 -0500 Subject: [PATCH] Revert "Fix contract data balance holder" --- internal/transform/contract_data.go | 2 +- internal/transform/contract_data_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/transform/contract_data.go b/internal/transform/contract_data.go index 8e681c52..30fec49b 100644 --- a/internal/transform/contract_data.go +++ b/internal/transform/contract_data.go @@ -94,7 +94,7 @@ func (t *TransformContractDataStruct) TransformContractData(ledgerChange ingest. dataBalanceHolder, dataBalance, _ := t.ContractBalanceFromContractData(ledgerEntry, passphrase) if dataBalance != nil { holderHashByte, _ := xdr.Hash(dataBalanceHolder).MarshalBinary() - contractDataBalanceHolder, _ = strkey.Encode(strkey.VersionByteAccountID, holderHashByte) + contractDataBalanceHolder, _ = strkey.Encode(strkey.VersionByteContract, holderHashByte) contractDataBalance = dataBalance.String() } diff --git a/internal/transform/contract_data_test.go b/internal/transform/contract_data_test.go index 1d6639be..c215a4bd 100644 --- a/internal/transform/contract_data_test.go +++ b/internal/transform/contract_data_test.go @@ -131,7 +131,7 @@ func makeContractDataTestOutput() []ContractDataOutput { ContractDataAssetCode: "", ContractDataAssetIssuer: "", ContractDataAssetType: "AssetTypeAssetTypeNative", - ContractDataBalanceHolder: "GAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAWHF", + ContractDataBalanceHolder: "CAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABSC4", ContractDataBalance: "0", LastModifiedLedger: 24229503, LedgerEntryChange: 1,