Socket
Socket
Sign inDemoInstall

sourcify-snap

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sourcify-snap - npm Package Compare versions

Comparing version 0.1.1 to 0.1.2

2

package.json
{
"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);

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc