mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-27 21:00:13 +01:00
7 lines
233 B
JavaScript
7 lines
233 B
JavaScript
|
export function transactionMatchesNetwork(transaction, chainId, networkId) {
|
||
|
if (typeof transaction.chainId !== 'undefined') {
|
||
|
return transaction.chainId === chainId;
|
||
|
}
|
||
|
return transaction.metamaskNetworkId === networkId;
|
||
|
}
|