mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-24 11:01:41 +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;
|
||
|
}
|