mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-11-17 09:47:37 +00:00
fix namecoin bug with getting address
This commit is contained in:
parent
9edae36c3b
commit
efe312c1f6
1 changed files with 2 additions and 1 deletions
|
@ -2501,7 +2501,8 @@ class NamecoinWallet extends CoinServiceAPI {
|
|||
int totalOutput = 0;
|
||||
|
||||
for (final output in txObject["vout"] as List) {
|
||||
final address = output["scriptPubKey"]["addresses"][0];
|
||||
Logging.instance.log(output, level: LogLevel.Info);
|
||||
final address = output["scriptPubKey"]["address"];
|
||||
final value = output["value"];
|
||||
final _value = (Decimal.parse(value.toString()) *
|
||||
Decimal.fromInt(Constants.satsPerCoin))
|
||||
|
|
Loading…
Reference in a new issue