-
Notifications
You must be signed in to change notification settings - Fork 53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FungibleTokenSwitchboard is not interoperable with TokenForwarding #104
Comments
Ah, skimmed thru that issue but didn't notice it is the same thing, sorry for duplicate |
Not at all!! Better duplicated than missed. And I love the level of detail explaining the issue :) |
Merged
7 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Problem
If there are multiple
&TokenForwarding{FungibleToken.Receiver}
Forwarders on an account, such asone for DapperUtilityCoin and one for FlowUtilityToken, which is currently used for Dapper Wallet accounts,
trying to add both, will result in only a single one being remembered by TokenForwarding,
because after
.borrow
ing they resolve to the sameType
.Neither would be unusable anyway, because the type does not match the input (deposit) vault type.
It is impossible to tell which token is handled by a Forwarder, as that information is not accessible from the resource.
Proposed solution
An (optional?) parameter for
addNewVault
method, to override the depositType
that the capability handles.Reproduction
Setups:
Script:
Result: (one entry, while two capabilities were added earlier, so one overwrites the other)
The text was updated successfully, but these errors were encountered: