CityOfZion / neon-js

Javascript libraries that allow the applications to interact with NEO blockchain

Home Page:https://docs.coz.io/neo3/neon-js/index.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Experimental API contract.invoke forces a single witness with CalledByEntry scope

hal0x2328 opened this issue · comments

The experimental API allows a signers array to be passed for contract.testInvoke but no such argument exists for contract.invoke - instead it creates a single signer object using the sender account, and specifies a scope of CalledByEntry:

This makes it impossible to invoke certain contract methods that require a more explicit scope, such as CustomContracts. contract.invoke should probably be modified to allow an optional signers array to be passed and only fall back to creating one if it is not provided.

solved in released version