Skip to content

Commit

Permalink
fix comment (#5090)
Browse files Browse the repository at this point in the history
  • Loading branch information
tsachiherman authored Oct 25, 2023
1 parent 48d2284 commit ac1958c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions services/horizon/internal/ingest/processors/contract_data.go
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@ func metadataObjFromAsset(isNative bool, code, issuer string) (*xdr.ScMap, error
// ledger entry containing the asset info entry written to contract storage by the
// Stellar Asset Contract.
//
// Warning: Only for use in tests. This does not set a realistic expirationLedgerSeq
// Warning: Only for use in tests. This does not create the accompanied TTLEntry which would typically be created by core.
func AssetToContractData(isNative bool, code, issuer string, contractID [32]byte) (xdr.LedgerEntryData, error) {
storageMap, err := metadataObjFromAsset(isNative, code, issuer)
if err != nil {
Expand Down Expand Up @@ -450,7 +450,7 @@ func AssetToContractData(isNative bool, code, issuer string, contractID [32]byte
// creates a ledger entry containing the asset balance of a contract holder
// written to contract storage by the Stellar Asset Contract.
//
// Warning: Only for use in tests. This does not set a realistic expirationLedgerSeq
// Warning: Only for use in tests. This does not create the accompanied TTLEntry which would typically be created by core.
func BalanceToContractData(assetContractId, holderID [32]byte, amt uint64) xdr.LedgerEntryData {
return balanceToContractData(assetContractId, holderID, xdr.Int128Parts{
Lo: xdr.Uint64(amt),
Expand Down

0 comments on commit ac1958c

Please sign in to comment.