Skip to content

Commit

Permalink
Revert "Fix contract data balance holder"
Browse files Browse the repository at this point in the history
  • Loading branch information
chowbao authored Feb 21, 2024
1 parent 3a7b49b commit cc6490e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion internal/transform/contract_data.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}

Expand Down
2 changes: 1 addition & 1 deletion internal/transform/contract_data_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ func makeContractDataTestOutput() []ContractDataOutput {
ContractDataAssetCode: "",
ContractDataAssetIssuer: "",
ContractDataAssetType: "AssetTypeAssetTypeNative",
ContractDataBalanceHolder: "GAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAWHF",
ContractDataBalanceHolder: "CAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABSC4",
ContractDataBalance: "0",
LastModifiedLedger: 24229503,
LedgerEntryChange: 1,
Expand Down

0 comments on commit cc6490e

Please sign in to comment.