Skip to content

Commit 2353e69

Browse files
authored
Merge pull request #93 from ngdenterprise/witness-scope
Witness scope support
2 parents d6be578 + 21e4442 commit 2353e69

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

src/extension/panelControllers/invokeFilePanelController.ts

+13-1
Original file line numberDiff line numberDiff line change
@@ -319,11 +319,22 @@ export default class InvokeFilePanelController extends PanelControllerBase<
319319
if (!account) {
320320
return;
321321
}
322+
let witnessScope = await IoHelpers.multipleChoice(
323+
"Select the witness scope for the transaction signature",
324+
"CalledByEntry",
325+
"Global",
326+
"None"
327+
);
328+
if (!witnessScope) {
329+
return;
330+
}
322331
await this.document.save();
323332
await this.updateViewState({ collapseTransactions: false });
324333
const result = await this.neoExpress.run(
325334
"contract",
326335
"invoke",
336+
"-w",
337+
witnessScope,
327338
"-i",
328339
connection.blockchainIdentifier.configPath,
329340
path,
@@ -425,7 +436,8 @@ export default class InvokeFilePanelController extends PanelControllerBase<
425436
}
426437

427438
if (connection) {
428-
const wallets = await connection.blockchainIdentifier.getWalletAddresses();
439+
const wallets =
440+
await connection.blockchainIdentifier.getWalletAddresses();
429441
const signerWalletName = await IoHelpers.multipleChoice(
430442
"Select an account",
431443
"(none)",

0 commit comments

Comments
 (0)