Skip to content

Refactor(tests): Use Signer#203

Merged
joshuajbouw merged 2 commits intodevelopfrom
use-signer-in-tests
Jul 30, 2021
Merged

Refactor(tests): Use Signer#203
joshuajbouw merged 2 commits intodevelopfrom
use-signer-in-tests

Conversation

@birchmd
Copy link
Copy Markdown
Member

@birchmd birchmd commented Jul 28, 2021

@mfornet introduced a Signer struct a while back so that we don't have to keep track of nonces manually in our tests. In this PR we back port it to tests that were written before Signer was introduced. This makes the tests cleaner and easier to read, and reduces the total number of lines of code.

@birchmd birchmd requested a review from artob as a code owner July 28, 2021 20:24
@joshuajbouw joshuajbouw merged commit a268a9f into develop Jul 30, 2021
@joshuajbouw joshuajbouw deleted the use-signer-in-tests branch July 30, 2021 10:05
artob added a commit that referenced this pull request Jul 30, 2021
* JSON: fix bugs and add unit tests. (#141)
* Add storage layout debug support for `EvmErc20.sol`. (#178)
* ERC-20: forbid using invalid NEP-141 AccountID for mapping. (#179)
* Add EIP-2930 support. (#181, #182)
* Migrate all workflows to self-hosted runners. (#185)
* Speed up the workflow using build caching. (#189)
* Use the new math API host functions. (#190)
* Fix `clippy::enum_variant_names` warning. (#192)
* Add different networks to the Makefile. (#193)
* Update the network status in the README. (#194)
* Remove the toolchain installation step in workflows. (#195)
* Run all tests for all networks in CI. (#196)
* Optimize for performance instead of code size. (#197)
* Parallelize the test suites. (#198)
* Add build-caching to the testing workflow. (#201)
* Refactor tests to use Signer. (#203)
* Add options to the bench profile. (#204)
* Remove a duplicate test. (#205)
* Add a sanity test for access list handling. (#206)
* Update nearcore to the latest branch.
* Add feature gates to the SDK's new host functions.

Co-authored-by: Ahmed Ali <ahmed@aurora.dev>
Co-authored-by: Dmitry Strokov <dmitry@aurora.dev>
Co-authored-by: Evgeny Ukhanov <evgeny@aurora.dev>
Co-authored-by: Joshua J. Bouw <joshua@aurora.dev>
Co-authored-by: Kirill <kirill@aurora.dev>
Co-authored-by: Michael Birch <michael@aurora.dev>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants