Skip to content
This repository has been archived by the owner on Dec 7, 2023. It is now read-only.

Commit

Permalink
fix cosigner scope
Browse files Browse the repository at this point in the history
  • Loading branch information
Luchuan committed Jun 30, 2020
1 parent 870e4b0 commit dcd8446
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion neo-cli/CLI/MainService.Contracts.cs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ private void OnInvokeCommand(UInt160 scriptHash, string operation, JArray contra
{
Cosigner[] cosigners = new Cosigner[0];
if (witnessAddress != null && !NoWallet())
cosigners = CurrentWallet.GetAccounts().Where(p => !p.Lock && !p.WatchOnly && witnessAddress.Contains(p.ScriptHash)).Select(p => new Cosigner() { Account = p.ScriptHash }).ToArray();
cosigners = CurrentWallet.GetAccounts().Where(p => !p.Lock && !p.WatchOnly && witnessAddress.Contains(p.ScriptHash)).Select(p => new Cosigner() { Account = p.ScriptHash, Scopes = WitnessScope.CalledByEntry }).ToArray();

Transaction tx = new Transaction
{
Expand Down

0 comments on commit dcd8446

Please sign in to comment.