public static InvocationResult InvokeWasmContract( Contract contract, InvocationContext context, byte[] input, ulong gasLimit ) { var status = FrameFactory.FromInvocation( contract.ByteCode, context, contract.ContractAddress, input, BlockchainInterface, out var rootFrame, gasLimit ); return(status == ExecutionStatus.Ok ? ExecuteFrame(rootFrame) : InvocationResult.WithStatus(status)); }