lhartikk / naivecoin

A tutorial for building a cryptocurrency
https://lhartikk.github.io/
Apache License 2.0
531 stars 266 forks source link

Transactions.ts problem #1

Open aszokalski opened 6 years ago

aszokalski commented 6 years ago

When i try to compile provided code i get following error. transactions.ts(158,24): error TS2339: Property 'find' does not exist on type 'UnspentTxOut[]'. transactions.ts(174,27): error TS2339: Property 'find' does not exist on type 'UnspentTxOut[]'. transactions.ts(246,18): error TS2339: Property 'from' does not exist on type 'ArrayConstructor'. transactions.ts(333,25): error TS2339: Property 'startsWith' does not exist on type 'string'.