Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

remix-lib

Package Overview
Dependencies
Maintainers
1
Versions
81
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

remix-lib - npm Package Compare versions

Comparing version 0.4.4 to 0.4.5

2

package.json
{
"name": "remix-lib",
"version": "0.4.4",
"version": "0.4.5",
"description": "Ethereum IDE and tools for the web",

@@ -5,0 +5,0 @@ "contributors": [

@@ -93,3 +93,3 @@ 'use strict'

} else {
msg = `\tThe transaction has been reverted to the initial state.\nNote: The constructor should be payable if you send value.`
msg = `\tThe transaction has been reverted to the initial state.\nNote: The called function should be payable if you send value and the value you send should be less than your current balance.`
}

@@ -96,0 +96,0 @@ ret.error = true

@@ -47,3 +47,3 @@ 'use strict'

} else {
var mes = tx.hash + ' is not a contract invokation or contract creation.'
var mes = tx.hash + ' is not a contract invocation or contract creation.'
console.log(mes)

@@ -50,0 +50,0 @@ self.isLoading = false

@@ -40,3 +40,2 @@ var async = require('async')

this._addAccount('71975fbf7fe448e004ac7ae54cad0a383c3906055a65468714156a07385e96ce', '0x56BC75E2D63100000')
executionContext.vm().stateManager.cache.flush(function () {})
}

@@ -69,3 +68,2 @@ // TODO: most params here can be refactored away in txRunner

this._addAccount(privateKey, balance)
executionContext.vm().stateManager.cache.flush(function () {})
privateKey = Buffer.from(privateKey, 'hex')

@@ -89,3 +87,2 @@ cb(null, '0x' + ethJSUtil.privateToAddress(privateKey).toString('hex'))

this._addAccount(privateKey, '0x56BC75E2D63100000')
executionContext.vm().stateManager.cache.flush(function () {})
cb(null, '0x' + ethJSUtil.privateToAddress(privateKey).toString('hex'))

@@ -107,3 +104,10 @@ }

// FIXME: we don't care about the callback, but we should still make this proper
executionContext.vm().stateManager.putAccountBalance(address, balance || '0xf00000000000000001', function cb () {})
let stateManager = executionContext.vm().stateManager
stateManager.getAccount(address, (error, account) => {
if (error) return console.log(error)
account.balance = balance || '0xf00000000000000001'
stateManager.putAccount(address, account, function cb (error) {
if (error) console.log(error)
})
})
self.accounts['0x' + address.toString('hex')] = { privateKey: privateKey, nonce: 0 }

@@ -151,7 +155,7 @@ }

executionContext.vm().stateManager.getAccountBalance(Buffer.from(address, 'hex'), function (err, res) {
executionContext.vm().stateManager.getAccount(Buffer.from(address, 'hex'), function (err, res) {
if (err) {
cb('Account not found')
} else {
cb(null, new BN(res).toString(10))
cb(null, new BN(res.balance).toString(10))
}

@@ -158,0 +162,0 @@ })

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