-
-
Notifications
You must be signed in to change notification settings - Fork 262
Conversation
FrederikBolding
commented
Aug 10, 2021
•
edited
Loading
edited
- Updated Trezor Common to include new EIP 1559 message
- Add new method for signing EIP 1559 transactions
Heya! Hoping to start a conversation about how to implement trezor/trezor-firmware#1653 in the JS library. |
@szymonlesisz Sorry for the ping, but looking to start the conversation about implementing this. I haven't figured out how to test with the new firmware build, but I think the code here should work with that. Curious to hear your thoughts on whether you would rather use the same function for both the old and new transaction types. I can also add more test cases once we get some progress on this. |
Hi @FrederikBolding , thanks for the draft! We were thinking more of keeping only What mechanism are you planning to use in your app for detection if firmware of connected device supports the new message? For Suite we would like to define new unavailable capability here https://github.com/trezor/connect/blob/develop/src/data/config.json#L106 . So the condition for protobuf message selection could look something like I could help you to run the new firmware in emulator, if you are interested. Starting point is https://github.com/trezor/trezor-firmware/blob/master/docs/core/build/emulator.md |
Sounds good to me, this is my preferred solution as well. I will make appropriate changes for this!
We haven't thought to much about that to be honest, but if you have a good way of doing that I don't have problem with it! What would be the format of adding that capability?
I have the new firmware running in an emulator from when I wrote the firmware PR. But I am unsure of how this repos tests with it 😄 |
@matejkriz I have simplified to use the same method for both calls. Still awaiting some instructions on tests as well as |
@FrederikBolding regarding the testing, when you run this repo locally ( |
Format for the new unavailableCapability in https://github.com/trezor/connect/blob/develop/src/data/config.json#L146 could be
|
I've gotten this far, but how do I force Trezor Connect to talk to the emulator instead of a normal device and how do I run the tests on the emulator? |
Hi @FrederikBolding , First of all: WOW big thanks for the integration! you can run tests with emulator or if you wish to work with the emulator during integration im recommending https://github.com/trezor/trezor-user-env docker image - it contains multiple firmwares including |
What I have now works and passes tests with fixtures copy-pasted from the test cases I created in the firmware. Good to start an actual review. Let me know if you have any questions 😄 |
Sorry for taking so long but i've found a problem with I've rebased your branch on top of my PR with the fix, squashed all your commits into one and added some fixups from me: https://github.com/trezor/connect/pull/874/commits in f94aecf in 1dcdeaa in e216b0e in 1b56b9e Now all tests are passing |
No worries about the wait!
It seems you removed
Other than the small question above, everything else looks good to me. You can push your squashed commits to my branch if you want. I don't know what you prefer. Thanks in advance!! |
validation of capabilities in
checking for |
Sounds good! |
Closing in favor of #874 |
Hi, thanks for the EIP-1559 support!
|
Unfortunately it is not supported! |
@szymonlesisz Sorry for the ping, but not sure where else to contact. Is this supposed to be releasing today? I saw the library was updated, but using the latest version throws |
Hi, will EIP-1559 support be added to Trezor One at some point soon? |
Is it never going to be supported for Trezor One? |
No comment? |
@FrederikBolding I upgraded to 2.4.2, latest MetaMask too, but my Trezor T still doesn't support direct "write contract" on etherscan.io, getting "Invalid transaction params: params specify an EIP-1559 transaction but the current network does not support EIP-1559" with the latest Metamask version or very high gas costs (indicating there is an error) with older versions of Metamask. I've spent months trying to solve this with dozens of MetaMask and Trezor firmware versions and now It's becoming a significant problem for me. Could you help me please? |
I'm not quite sure whether MetaMask has rolled out 1559 support for Trezor at this point. But if it is not working for you, you can use https://app.mycrypto.com/interact-with-contracts to interact with contracts using Trezor Model T. If you have any issues feel free to reach out on our Discord or to our support team! |
Wow. Just bought a Trezor One for the specific purpose of managing Ethereum contracts. Am I understanding it correctly that there is no plan for EIP-1559 support for the One? So I can basically trash it and buy something else? :'( |