Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
jingyi2811 committed May 27, 2021
1 parent 4770983 commit cd9982e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -512,7 +512,7 @@ describe('masternode', () => {
payload[await container.getNewAddress()] = '5@DFI'

const utxos = await container.call('listunspent')
const inputs: UTXO[] = utxos.map((utxo: { txid: string, vout: number }) => {
const inputs: UTXO[] = utxos.map((utxo: UTXO) => {
return {
txid: utxo.txid,
vout: utxo.vout
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ describe('masternode', () => {
payload[await container.getNewAddress()] = '5@DETH'

const utxos = await container.call('listunspent')
const inputs: UTXO[] = utxos.filter((utxo: { txid: string, vout: number }) => utxo.txid === txid).map((utxo: { txid: string, vout: number }) => {
const inputs: UTXO[] = utxos.filter((utxo: UTXO) => utxo.txid === txid).map((utxo: UTXO) => {
return {
txid: utxo.txid,
vout: utxo.vout
Expand Down

0 comments on commit cd9982e

Please sign in to comment.