This repository has been archived by the owner on Mar 13, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
Dropped tx while transfer successully #563
Labels
C-EVM
[Component] Something about EVM
Comments
curl --location --request POST 'https://pangolin-rpc.darwinia.network/' \
--header 'Content-Type: application/json' \
--data-raw '{
"jsonrpc":"2.0",
"method":"eth_getTransactionByHash",
"params":[
"0x914d7f5baddc04e5343024146b3a9d28e435070679892e8bf5ab93cfc584f2a1"
],
"id":1
}' The output: {“jsonrpc”:“2.0",“result”:null,“id”:1} |
From Metamask: /**
checks to see if if the tx's nonce has been used by another transaction
@param txMeta {Object} - txMeta object
@emits tx:dropped
@returns {boolean}
*/
async _checkIftxWasDropped (txMeta) {
const { txParams: { nonce, from }, hash } = txMeta
const nextNonce = await this.query.getTransactionCount(from)
const { blockNumber } = await this.query.getTransactionByHash(hash) || {}
if (!blockNumber && parseInt(nextNonce) > parseInt(nonce)) {
return true
}
return false
} |
The pangolin network version 210 has this issue. This issue can be fixed by #559 and wait for version 211 afterward. Close it now. |
Merged
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
The Metamask shows that the transaction was dropped, but the transfer was executed successfully
The text was updated successfully, but these errors were encountered: