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,