@tenderly/metamask-snap
Advanced tools
Comparing version 1.2.1 to 1.2.2
{ | ||
"name": "@tenderly/metamask-snap", | ||
"version": "1.2.1", | ||
"version": "1.2.2", | ||
"description": "Preview transactions before sending them on-chain to get valuable insights, avoid failed transactions, and save funds. Get human-readable information on transferred assets with corresponding dollar values for ERC-20 tokens and NFTs.", | ||
@@ -5,0 +5,0 @@ "repository": { |
{ | ||
"version": "1.2.1", | ||
"version": "1.2.2", | ||
"description": "Preview transactions before sending them on-chain to get valuable insights, avoid failed transactions, and save funds. Get human-readable information on transferred assets with corresponding dollar values for ERC-20 tokens and NFTs.", | ||
@@ -10,3 +10,3 @@ "proposedName": "Tenderly TX Preview", | ||
"source": { | ||
"shasum": "vNrNCKPLLktsGjVi1vgs3YKLy4zdPJZ4yMueXNGvWTA=", | ||
"shasum": "JNLIjh3TKVEi5tyOrY975mbE9GYvtA6ruLcmilpZvPc=", | ||
"location": { | ||
@@ -13,0 +13,0 @@ "npm": { |
@@ -54,3 +54,4 @@ import { | ||
* @param args.transaction - The transaction to handle. | ||
* @param args.transactionOrigin - The transaction origin. | ||
* @param args.transactionOrigin - The transaction origin. | ||
* @param args.chainId - The chain ID of the transaction. | ||
*/ | ||
@@ -60,2 +61,3 @@ export const onTransaction: OnTransactionHandler = async ({ | ||
transactionOrigin, | ||
chainId, | ||
}) => { | ||
@@ -72,2 +74,3 @@ if (!isObject(transaction) || !hasProperty(transaction, 'to')) { | ||
const simulationResponse = await simulate( | ||
chainId, | ||
transaction, | ||
@@ -74,0 +77,0 @@ transactionOrigin || '', |
Sorry, the diff of this file is too big to display
498953
12825