Conversation
|
|
||
| const seedsToken = TokenModel( | ||
| chainName: "Telos", | ||
| chainName: SeedsChains.telos.value, |
There was a problem hiding this comment.
Seems we can't use extensions in constant expressions. Ref explanation here: dart-lang/language#663
There was a problem hiding this comment.
Maybe you need to update your flutter version?
There was a problem hiding this comment.
Oh you're right - there's something weird going on with this PR.
| @@ -0,0 +1,26 @@ | |||
| const String _chainTelos = 'telos'; | |||
There was a problem hiding this comment.
Lower case "telos" makes sense but we have a conflict with legacy code in seeds.tokensmaster.cpp and the existing tmastr.seeds table entries which use "Telos".
Suggested fix would be to patch a conditional expression here which specifically converts "Telos" to "telos".
e.g.
chainName: parsedJson["chain"]! == "Telos" ? "telos" : parsedJson["chain"]!, // fix legacy capitalization
There was a problem hiding this comment.
Is this an actual bug or ... ?
There was a problem hiding this comment.
We need to choose whether "telos" or "Telos" is the string we use in TokenModel.chainName.
- If "Telos" (capitalized), change
- If "telos" (lowercase), make the patch so that legacy metadata containing "Telos" is normalized.
So yes, it's a bug that will appear as soon as we start using this PR code.
|
@n13 This looks like the beginning of an evolution to multichain capability as we will be able to show token cards from Telos and EOS (and other Antelope chains as well). IMHO this is great and I love it!. Is there a bigger plan for how this UX should work? update Currency cards are filtered by the active chain. Active chain is set when you switch to a new account; the account selector tab should have a UI indication of chain. Token metadata for all Antelope chains can be managed thru the Is it true that only Telos retains the original eosio resource payment model? In any case, SEEDS payforcpu doesn't make sense for non-SEEDS accounts on other chains, and we may have to figure out how to integrate PowerUp etc. |
|
Merged master into this - probably need to do a new PR as it is it makes little sense |
| }, | ||
| ).catchError((dynamic error) => _statRepository.mapHttpError(error)); | ||
| ).catchError((dynamic error) { | ||
| // This entire code here is really funky - Nik |
No description provided.