Skip to content

Commit

Permalink
fix: ownerToAddress
Browse files Browse the repository at this point in the history
  • Loading branch information
charmful0x authored Jun 27, 2021
1 parent 03030ad commit 40c4023
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions examples/test-api-things.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@ export async function handle (state, input) {
SmartWeave.arweave.utils.bufferToB64Url(
await SmartWeave.arweave.utils.crypto.hash(ownerBytes)
)
const from2 = SmartWeave.utils.wallets.ownerToAddress(txOwner)

state.log = [...state.log, { blockHeight, blockIndepHash, txId, txOwner: txOwner, txTarget, txQuantity, txReward, txTags, from, from2, contractId }]
state.log = [...state.log, { blockHeight, blockIndepHash, txId, txOwner: txOwner, txTarget, txQuantity, txReward, txTags, from, contractId }]
return { state }
}

0 comments on commit 40c4023

Please sign in to comment.