Supun Setunga
Supun Setunga
Work towards https://github.com/onflow/cadence/issues/331 ## Description Supports: - **Equal matcher** ```cadence // matcher with primitive type let matcher = Test.equal(1) // matcher with struct type let matcher = Test.equal(Foo()) // matcher...
Work towards #331 ## Description Add support for running transactions against the blockchain instance. Also allows creating accounts, which would need to sign and authorize transactions. ______ - [ ]...
Work towards https://github.com/onflow/cadence/issues/331 ## Description ⚠️ _**NOTE**: Added this as an experimental feature._ One of the major pain points in executing transactions/script or deploying contracts during tests is, having to...
Work towards https://github.com/onflow/cadence/issues/331 ## Description Introduced a utility function to deploy a contract to the blockchain. ```cadence let err = blockchain.deployContract( contractName, contractCode, authorizerAddress, signers, contractInitArgs, ) ``` Devs can...
Work towards https://github.com/onflow/cadence/issues/331 ______ - [ ] Targeted PR against `master` branch - [x] Linked to Github issue with discussion and accepted design OR link to spec that describes this...
Work towards https://github.com/onflow/cadence/issues/331 ## Description This PR adds support for importing and initializing contracts in tests. ```cadence import FooContract from "./path/to/FooContract" pub fun testImportingContract() { var foo = FooContract() var...
Work towards https://github.com/onflow/cadence/issues/331 ## Description Leverage FVM as the environment to run tests. This allows re-using the functionalities of `FVM` and `runtimeInterface` ______ - [ ] Targeted PR against `master`...
### Issue To Be Solved from @pattyshack (https://axiomzen.slack.com/archives/C024LNQE5N1/p1658887300660419) >i notice the parser/lexer always copy the source code since they expect the input to be a string, but the real input...
### Issue To Be Solved Type inferring is currently only supported for required arguments. Also add support for: - [ ] Extra arguments (e.g: `authAccount.contracts.add("Name", code, arg1. arg2)`) https://github.com/onflow/cadence/blob/481cb23a7d6bac00083cf5127a86a17b900c99aa/runtime/sema/check_invocation_expression.go#L450-L451 -...
### Issue To Be Solved While adding some runtime changes, I noticed that small closure functions can lead to performance degradations. e.g: Use of `locationRangeGetter` function in a hot-path decreased...