Skip to content

Commit

Permalink
Revert conditional
Browse files Browse the repository at this point in the history
  • Loading branch information
shargon committed Jun 20, 2019
1 parent 1b0a2df commit 071cee5
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions neo/Wallets/Wallet.cs
Original file line number Diff line number Diff line change
Expand Up @@ -241,11 +241,8 @@ public Transaction MakeTransaction(Snapshot snapshot, TransferOutput[] outputs,
cosigners.UnionWith(balances_used.Select(p => p.Account));
foreach (var (account, value) in balances_used)
{
if (account != output.ScriptHash)
{
sb.EmitAppCall(output.AssetId, "transfer", account, output.ScriptHash, value);
sb.Emit(OpCode.THROWIFNOT);
}
sb.EmitAppCall(output.AssetId, "transfer", account, output.ScriptHash, value);
sb.Emit(OpCode.THROWIFNOT);
}
}
if (assetId.Equals(NativeContract.GAS.Hash))
Expand Down

0 comments on commit 071cee5

Please sign in to comment.