cadence icon indicating copy to clipboard operation
cadence copied to clipboard

Define native function of `Test` contract in Cadence

Open SupunS opened this issue 2 years ago • 3 comments

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

SupunS avatar Sep 27 '23 23:09 SupunS

@m-Peter is this still blocking you ?

j1010001 avatar Oct 20 '23 20:10 j1010001

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.

m-Peter avatar Oct 23 '23 08:10 m-Peter

on hold until EVM is done

j1010001 avatar Jan 05 '24 19:01 j1010001