-
Notifications
You must be signed in to change notification settings - Fork 31
User blocked at the step of Transfer and cannot proceed to Deposit #235
Comments
@think-in-universe The successful lock transaction hash ( Could you share more information about which wallet was being used ? |
@paouvrard the user was using MetaMask. |
The user tried Any ideas how to fix this? |
@paouvrard from the explorer, you could see the user called lockToken twice and the second one failed: https://etherscan.io/address/0xf0169539555437d35064f4853e67c5a8d543f92b |
@think-in-universe , @mfornet mentioned he already finalized the transfer for the user so the funds should be in the user's account. So attempting to finalize again (double spend) causes |
@IsQiao Yes, you can disregard it, or clear localStorage if you wish to remove it from the transfers list. @mfornet @djsatok This is also a good example of when we would want to check whether a proof has been used or not (contract view function) so that we can mark transfers as completed before trying to finalize a tx that was already finalized. |
We can use the indexer to check on the Near side? what do you suggest to use on the ETH side? Btw, can we close this issue already? |
@mfornet Couldn't we use view functions on the connectors to check if a proof has been used or not ? (NEAR and Eth side) @IsQiao , @think-in-universe mentioned that you clicked the |
We can, on NEAR it is easier than in ethereum though, since upgrading the contract in Eth side will involve moving all assets from one contract to the other. However, this gave me the idea that we can query directly for the state if we know exactly where the proof is located. Maybe @0x3bfc can help with this, we can have a call to discuss this approach. |
Right, we can use eth_getStorageAt / eth_getProof. |
@mfornet @0x3bfc The check for already used unlock proofs on Ethereum side using eth_getStorageAt is implemented here: aurora-is-near/rainbow-bridge-client#37. |
Steps:
|
Could you clarify this ? If you have confirmed the step 1 transaction in Metamask, then you would not be able to start a new transfer and you would get this error: My guess is that at step 1 you didn't confirm in Metamask, so when you started the transfer again, you had 2 pending Metamask transactions to be confirmed and the frontend cannot track both. |
@paouvrard Yes, it should be, 2 pending transactions in Metamask wallet |
Description
One user was blocked at the step of Transfer (lockToken), when actually he has successfully locked the token (https://etherscan.io/tx/0xeae90910a492632ebc1307d4217179302de6fef3c16918a78f882bdbdb15b009) , but accidentally he click the Transfer button again and then he was blocked at the frontend (https://etherscan.io/tx/0x49285ae9cb5ccc25fd9c0135f6cb96bf13d023e8198fbed3adb4ac9231bf9d66), and cannot proceed with Deposit on NEAR.
Do we have any way to workaround this issue in frontend?
This seems to be an issue at frontend and we should take a look
The text was updated successfully, but these errors were encountered: