Skip to content

Conversation

@dong77
Copy link
Contributor

@dong77 dong77 commented Jun 6, 2021

需要为setInitialGuardians和recover增加测试或者修改测试
@kongliangzhong

@dong77 dong77 requested a review from kongliangzhong June 6, 2021 07:15
@kongliangzhong
Copy link
Collaborator

需要为setInitialGuardians和recover增加测试或者修改测试
@kongliangzhong

添加了一个测试,addGuardian函数本身是有去重功能的,如果newGuardians数组中有重复的地址,会调用多次addGuardian函数,但并不会导致钱包出现重复的guardian。

@dong77 dong77 merged commit 0b930b3 into hebaov2-recover2 Jun 6, 2021
@dong77 dong77 deleted the hebaov2-recover2-fix branch June 6, 2021 15:34
kongliangzhong added a commit that referenced this pull request Jun 7, 2021
* [hebaov2] add a new recover function which can reset guardians

* update

* add unit test

* feedback

* update

* update

* add test for duplicated guardians

* Hebao v2: fix potential duplicate guardian bug (#2463)

* fix tests

Co-authored-by: Daniel Wang <daniel@loopring.org>
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