some fixes

This commit is contained in:
kandrusyak
2022-08-02 19:11:05 +03:00
parent 4c334648cb
commit f395661480

View File

@@ -158,7 +158,7 @@ class Store {
transaction: item.asset.features.map(asset => { transaction: item.asset.features.map(asset => {
return { return {
transaction_id: item.id, transaction_id: item.id,
address: item.asset.recipientAddress && cryptography.bufferToHex(cryptography.getAddressFromPublicKey(cryptography.hexToBuffer(item.senderPublicKey))), address: item.asset.recipientAddress && cryptography.bufferToHex(cryptography.getAddressFromPublicKey(cryptography.hexToBuffer(item.senderPublicKey))),
value: asset.value, value: asset.value,
label: labelMap[asset.label], label: labelMap[asset.label],
} }
@@ -216,7 +216,7 @@ class Store {
} }
get address() { get address() {
return cryptography.bufferToHex(this.addressAndPubKey.address) return this.addressAndPubKey.address.toString('hex')
} }
get tokenKey() { get tokenKey() {