Skip to content

Commit

Permalink
Remove check account in wallet
Browse files Browse the repository at this point in the history
  • Loading branch information
shargon committed Aug 4, 2020
1 parent d972416 commit b495fc4
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/neo/Wallets/Wallet.cs
Original file line number Diff line number Diff line change
Expand Up @@ -250,8 +250,6 @@ public Transaction MakeTransaction(TransferOutput[] outputs, UInt160 from = null
}
else
{
if (!Contains(from))
throw new ArgumentException($"The address {from} was not found in the wallet");
accounts = new[] { from };
}
using (SnapshotView snapshot = Blockchain.Singleton.GetSnapshot())
Expand Down Expand Up @@ -323,8 +321,6 @@ public Transaction MakeTransaction(byte[] script, UInt160 sender = null, Signer[
}
else
{
if (!Contains(sender))
throw new ArgumentException($"The address {sender} was not found in the wallet");
accounts = new[] { sender };
}
using (SnapshotView snapshot = Blockchain.Singleton.GetSnapshot())
Expand Down

0 comments on commit b495fc4

Please sign in to comment.