Skip to content
This repository has been archived by the owner on Jun 15, 2022. It is now read-only.

Simplify some code #53

Merged
merged 4 commits into from May 25, 2021

Conversation

liuchengxu
Copy link
Contributor

No description provided.

src/ledger.rs Outdated Show resolved Hide resolved
@zhenfeizhang
Copy link
Contributor

Thanks for this PR. This pallet is imported by Manta which does not have std at runtime. Can you modify your PR so that the following passes within Manta repo?

cargo build --release
cargo build --release --features runtime-benchmarks

Copy link
Contributor

@zhenfeizhang zhenfeizhang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks!

@zhenfeizhang zhenfeizhang merged commit b9e1cd2 into Manta-Network:calamari May 25, 2021
zhenfeizhang added a commit that referenced this pull request May 31, 2021
* Simplify some code (#53)

* Simplify some code

* Fix formatting

* Apply the review suggestion

* Use sp_std::vec!

* compiles after refactoring

* CI to include manta repo when pallet-manta-pay is updated (#55)

* Test cross-repo CI

* Disable other checks temporarily

* Replace git link to pallet-manta-pay to local link

* Fix yamllint errors

* More yaml errors

* Check for pallet-manta-pay 3 levels up

* Revert temporarily disabled jobs

* Must fail tests for the private_transfer extrinsic (#52)

* Test for HASH-PARAM mismatch in private_transfer

* Fix formatting

* Adding test for transferring a spent coin

* Test for existing coins

* Fix formatting and broken tests

* Adding test for invalid zkp param

* Reuse logic better

* Fix formatting

* Test for zkp verification failure

* Fix formatting

* Reuse code

* Invalid ledger state tests

* Adding test for sender-2 spent coin

* Added a couple of Reclaim tests. Restructured the file, added comments and reused code

* Correct name

* Add another helper

* Another 2 helpers to reuse setup logic between tests

* unimplemented! for the destroying asset test

* Add [#ignore] to unimplemented! test

* fix compiling errors

* fix test

Co-authored-by: Liu-Cheng Xu <xuliuchengxlc@gmail.com>
Co-authored-by: Georgi Zlatarev <45011053+ghzlatarev@users.noreply.github.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
3 participants