You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Validation should fail if for any allocation in TransferAuthorization when:
spend_limit is nil.
Any of the coins in spend_limit is not valid.
Either the source port or source channel is not a valid identifier.
There are more than one allocations AND the same source port and source channel combination is present in more than one allocation.
The allow_list for an allocation contains duplicate addresses.
Validation should succeed when:
There are one or more allocations AND spend_limit is not nil and all coins are valid AND source port and source channel are valid identifiers AND source port/source channel combination is not duplicated AND allow_list is either empty or does not contain duplicate addresses.
Unit tests for the following scenarios:
Validation should fail if for any allocation in
TransferAuthorization
when:spend_limit
isnil
.spend_limit
is not valid.allow_list
for an allocation contains duplicate addresses.Validation should succeed when:
spend_limit
is not nil and all coins are valid AND source port and source channel are valid identifiers AND source port/source channel combination is not duplicated ANDallow_list
is either empty or does not contain duplicate addresses.Open PRs against the feature branch.
The text was updated successfully, but these errors were encountered: