Calls a function from a contract's bytecode in the current context.
Remarks
This can be useful for testing or debugging purposes,
or for calling functions that are not meant to be called from outside the contract.
Arguments serialization is to be handled by the caller and the callee.
Returns
The return value of the executed function, serialized as a 'StaticArray'.
Throws
if the function doesn't exist in the bytecode
Parameters
bytecode: StaticArray<number>
The bytecode of the contract containing the function to execute.
functionName: string
The name of the function to call in that contract.
Calls a function from a contract's bytecode in the current context.
Remarks
This can be useful for testing or debugging purposes, or for calling functions that are not meant to be called from outside the contract. Arguments serialization is to be handled by the caller and the callee.
Returns
The return value of the executed function, serialized as a 'StaticArray'.
Throws