Skip to content
This repository was archived by the owner on Aug 4, 2023. It is now read-only.

Use generated contract types with tests (using TezosToolkit<TContract>)#116

Draft
ricklove wants to merge 15 commits intomainfrom
rick/test-types-01
Draft

Use generated contract types with tests (using TezosToolkit<TContract>)#116
ricklove wants to merge 15 commits intomainfrom
rick/test-types-01

Conversation

@ricklove
Copy link
Collaborator

  • Changes generated code to use simple types (so that existing tests don't need to do any type casting)
  • [Don't merge] - This requires private TezosToolkit packages at runtime
  • The TezosToolkit is extended with TContract generic type.
  • Since the test code reuses the TezosToolkit instance to originate multiple contract types, the casting is applied to the Contract<> type and is typed with the origination methods.

@ricklove ricklove requested a review from cpubot April 14, 2021 16:02
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant