-
Notifications
You must be signed in to change notification settings - Fork 2.6k
add test locking removed when amount is zero #14284
add test locking removed when amount is zero #14284
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! While you're at it, could you please also check setting reasons to empty (WithdrawReasons::empty()
) has the same behavior? See https://github.com/paritytech/substrate/pull/14144/files#diff-0848af5dac3286b1cf09718d38571925e65582729dedacceef836bb2278b612dR856-R859.
Hey @liamaharon, thanks for the quick response! Just did the requested changes. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tabs are preferred for indentation, before merging please fix by running cargo +nightly fmt -p pallet-balances
bot merge |
Waiting for commit status. |
* add test locking removed when amount is zero * add test set lock with withdraw reasons empty removes lock * fix test set lock with withdraw reasons
Closes #14231
Hey @liamaharon, I've added the test when the amount is zero. Let me know if this is what you have in mind.