Experimental API contract.invoke forces a single witness with CalledByEntry scope
hal0x2328 opened this issue · comments
hal0x2328 commented
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.
Erik van den Brink commented
solved in released version