Skip to content

Commit

Permalink
Modify a typo
Browse files Browse the repository at this point in the history
“Amount” is property of Coin class. A property of TxOut class, which
has the same meaning, is Value.
  • Loading branch information
Masataka Shintoku committed Mar 30, 2017
1 parent adefb34 commit 741c0da
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions bitcoin_transfer/spend_your_coin.md
Expand Up @@ -137,7 +137,7 @@ var hallOfTheMakersAmount = new Money(0.5m, MoneyUnit.BTC);
*/
var minerFee = new Money(0.0001m, MoneyUnit.BTC);
// UTXOからいくらトータルでビットコインを 使いたいか。
var txInAmount = receivedCoins[(int) outPointToSpend.N].TxOut.Amount;
var txInAmount = receivedCoins[(int) outPointToSpend.N].TxOut.Value;
Money changeBackAmount = txInAmount - hallOfTheMakersAmount - minerFee;
```

Expand Down Expand Up @@ -292,4 +292,3 @@ using (var node = Node.ConnectToLocal(network)) //Connect to the node
Youtube: [How to make your first transaction with NBitcoin](https://www.youtube.com/watch?v=X4ZwRWIF49w)
CodeProject: [Create a Bitcoin transaction by hand.](http://www.codeproject.com/Articles/1151054/Create-a-Bitcoin-transaction-by-hand)
CodeProject: [DotNetWallet - Build your own Bitcoin wallet in C\#](https://www.codeproject.com/script/Articles/ArticleVersion.aspx?waid=214550&aid=1115639)

0 comments on commit 741c0da

Please sign in to comment.