Closed MicaelaPesado closed 5 years ago
@posthnikova has a bug on production safe
This is a payload from the extension back to the app
{“devices”:[“0x91B8C4Da89f97605629E667adbf4708b3e49cb29",“0x6350dfb59f1989f73217E6bCe52140545959b59D”,“0x4C26B7449673D25C10e28c6434C823a4C05cF460",“0x9df121EFd57CB137887fcc7DcE1A9494f855BBcC”],“message”:“{\“type\“:\“confirmTransaction\“,\“hash\“:\“0xc89eab5c080cdf739924b0449d144d4146681dde50ad96fe706cc01f1de1aec5\“,\“r\“:\“74761268592192215676756433001840596381198580505139451716256614252486979330619\“,\“s\“:\“56787045967158319603808067137115287620183062671248866148282704669315335300743\“,\“v\“:\“28\“}”,“signature”:{“r”:“34457886007192563953528535876175844814954775392570717264534771854369390523592",“s”:“20579455339284296105930722817793147918604786683026504116188587813862176935781",“v”:27}}
Should be the sender of a failed call be among devices?
sender: 0xd08f600d8318930cdc34C075e3DC6E59F0f250F9, devices: [‘0x91B8C4Da89f97605629E667adbf4708b3e49cb29’, ‘0x6350dfb59f1989f73217E6bCe52140545959b59D’, ‘0x4C26B7449673D25C10e28c6434C823a4C05cF460’, ‘0x9df121EFd57CB137887fcc7DcE1A9494f855BBcC’]
That looks like the extension uses a wrong account, since I would assume the sender should be 0x635...
less than 4 seconds to press the confirm button .... not bad :D
@MicaelaPesado did you use a newly installed chrome extension?
That is Sasha's error. She has some transaction already sent with this extension. And after updating to iOS 1.3.0 this was the first time she tried to execute a transaction.
@sche I know that this was sashas error, still want to know if @MicaelaPesado used a clean extension ;)
This seems to be a bug related to the "new owner per safe" feature. The index stored is currentIndex + 1 when the push arrives, but this is error prone (what if a different safe was created in between, what if you resync a deleted safe) @germartinez this is something we need to fix. When the push arrives we need to check which index matches the owner of the safe and use that index. I would suggest just iterate decreasing from the currentAccountIndex
until we find one (or error if we don't find one)
@sche I know that this was sashas error, still want to know if @MicaelaPesado used a clean extension ;)
I had the extension already installed in the browser, also with some other addresses connected; but the safe we use to do this transactions, have been connected just before the transactions. Do you want us to test it with a clean extension?
I guess a clean transaction might not have the issue, but would be interesting to know :)
I guess a clean transaction might not have the issue, but would be interesting to know :)
I tested whit the address we have already installed on the android device, and whit the cleaned extension it works fine. Then I test removing the addresses from the device, recovering a safe, connecting the browser extension, and making a transaction, and it works without any problem, too. Also, the address I recovered secondly, was connected to another browser extension, different from what I am using to test now.
I can reproduce the issue by doing the following:
Expected: the newly generated safe owner is used Actual: old owner is used (the same safe notificaiton did not replace with the new owner).
The same behavior happens if you recover the same safe twice but do not remove the safe from the extension and use "connect new safe" instead.
Prerequisites Having an existent address created in another version or in the same one.
Description When trying to made a transaction with a recovered address connected with the extension, the app send the notification to the browser, we can confirm it, but after the confirmation, the app keeps asking for it.
Environment
Steps to reproduce
Additional context: Mobile device: Motog 6 Play and Iphone X Safe Android version: 1.5.0 Safe iOS version: 1.3.1 (5)