Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
);
const assetSold = {
type: sold.getAssetType(),
assetCode: sold.getCode(),
issuer: sold.getIssuer(),
};
const assetBought = {
type: bought.getAssetType(),
assetCode: bought.getCode(),
issuer: bought.getIssuer(),
};
return {
sellerId: StrKey.encodeEd25519PublicKey(
offerClaimed.sellerId().ed25519(),
),
offerId: offerClaimed.offerId().toString(),
assetSold,
amountSold: _getAmountInLumens(claimedOfferAmountSold),
assetBought,
amountBought: _getAmountInLumens(claimedOfferAmountBought),
};
});
export const hexToEd25519PublicKey = (input) => {
return StrKey.encodeEd25519PublicKey(hexToArrayBuffer(input));
};