Skip to content

Commit

Permalink
Merge pull request #226 from stellar/revert-225-fix-contract-balance-…
Browse files Browse the repository at this point in the history
…holder

Revert "Fix contract data balance holder"
  • Loading branch information
chowbao authored Feb 21, 2024
2 parents 3a7b49b + cc6490e commit a103574
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 a103574

Please sign in to comment.