Skip to content

Conversation

@jakmeier
Copy link
Contributor

@jakmeier jakmeier commented Jun 12, 2023

rs_contract can be used by tests that run only on the latest
protocol version, as defined by the const PROTOCOL_VERSION.

backwards_compatible_rs_contract must be used in backwards
compatibility tests that rely on specific protocol versions.

This is a pre-requisite to land the rustc 1.70 toolchain upgrade.
(See also #9140)

`rs_contract` can be used by tests that run only on  the latest
 protocol version, as defined by the const PROTOCOL_VERSION.

`base_rs_contract` must be used in backwards compatibility tests that
 rely on specific protocol versions.

This is a pre-requisite to land the rustc 1.70 toolchain upgrade.
(See also near#9140)
@jakmeier jakmeier requested a review from nagisa June 12, 2023 12:36
@jakmeier jakmeier requested a review from a team as a code owner June 12, 2023 12:36
@jakmeier jakmeier mentioned this pull request Jun 12, 2023
@nagisa
Copy link
Collaborator

nagisa commented Jun 12, 2023

Would be great to rename base_rs_contract to something that describes its properties in a more straightforward way. Right now "base" says approximately nothing about what this contract is.

to `backwards_compatible_rs_contract`
@jakmeier
Copy link
Contributor Author

Would be great to rename base_rs_contract to something that describes its properties in a more straightforward way. Right now "base" says approximately nothing about what this contract is.

very true, renamed to backwards_compatible_rs_contract

@jakmeier jakmeier changed the title test: use base_rs_contract where appropriate test: use backwards_compatible_rs_contract where appropriate Jun 12, 2023
@near-bulldozer near-bulldozer bot merged commit a7aed55 into near:master Jun 12, 2023
@jakmeier jakmeier deleted the use_base_rs_contract branch June 12, 2023 15:12
nikurt pushed a commit that referenced this pull request Jun 13, 2023
`rs_contract` can be used by tests that run only on  the latest
 protocol version, as defined by the const PROTOCOL_VERSION.

`backwards_compatible_rs_contract` must be used in backwards 
compatibility tests that rely on specific protocol versions.

This is a pre-requisite to land the rustc 1.70 toolchain upgrade.
(See also #9140)
@jakmeier jakmeier added the C-housekeeping Category: Refactoring, cleanups, code quality label Jun 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

C-housekeeping Category: Refactoring, cleanups, code quality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants