Define native function of `Test` contract in Cadence
Issue to be solved
As discussed in https://github.com/onflow/cadence/pull/2783#discussion_r1334845079, once native function support is available in the checker (#2821), define the native functions that are currently being 'injected' to the test contract, also in Cadence.
Suggested Solution
No response
@m-Peter is this still blocking you ?
Hey @j1010001, this is not blocking the current version of the testing framework we are about to release. This is merely a technical debt, for a workaround that is already merged. I am tackling the implementation of this in https://github.com/onflow/cadence/pull/2823, and it is almost done. I have come across a limitation on defining optional arguments for functions in user-code: https://github.com/onflow/cadence/pull/2823#issuecomment-1759017780. But we can possibly fix this by changing the API of these 2 methods.
on hold until EVM is done