sourcify-snap
Advanced tools
Comparing version 0.1.1 to 0.1.2
{ | ||
"name": "sourcify-snap", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"description": "Metamask Snap used to get human-readable transaction description from Sourcify", | ||
@@ -5,0 +5,0 @@ "repository": { |
{ | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"description": "An example Snap written in TypeScript.", | ||
@@ -7,3 +7,3 @@ "proposedName": "From Sourcify", | ||
"type": "git", | ||
"url": "https://github.com/MetaMask/template-snap-monorepo.git" | ||
"url": "https://github.com/therealharpaljadeja/sourcify-snap" | ||
}, | ||
@@ -10,0 +10,0 @@ "source": { |
@@ -23,4 +23,4 @@ import { OnTransactionHandler } from '@metamask/snap-types'; | ||
let { from, to, data, value } = transaction; | ||
let toAddress = utils.getAddress(to as string); | ||
const { to, data } = transaction; | ||
const toAddress = utils.getAddress(to as string); | ||
console.log(toAddress); | ||
@@ -36,3 +36,3 @@ | ||
let decodedObj = await decodeContractCall( | ||
const decodedObj = await decodeContractCall( | ||
{ to: toAddress, data }, | ||
@@ -44,4 +44,4 @@ { chainId: chainIdInt }, | ||
let { contract, method } = decodedObj; | ||
let { notice, selector } = method; | ||
const { contract, method } = decodedObj; | ||
const { notice, selector } = method; | ||
@@ -48,0 +48,0 @@ console.log(contract, method); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2595280