Merge pull request #142 from sc-forks/gas-bug

Fix gas test, bump to testrpc-sc 6.0.4
pull/143/head
c-g-e-w-e-k-e- 7 years ago committed by GitHub
commit 2d006439a1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 20
      package-lock.json
  2. 2
      package.json
  3. 4
      test/cli/block-gas-limit.js
  4. 3
      test/sources/cli/Expensive.sol

20
package-lock.json generated

@ -1902,7 +1902,7 @@
"create-hash": "1.1.3", "create-hash": "1.1.3",
"keccakjs": "0.2.1", "keccakjs": "0.2.1",
"rlp": "2.0.0", "rlp": "2.0.0",
"secp256k1": "3.3.0" "secp256k1": "3.3.1"
} }
} }
} }
@ -1929,9 +1929,9 @@
} }
}, },
"ethereumjs-testrpc-sc": { "ethereumjs-testrpc-sc": {
"version": "6.0.3", "version": "6.0.4",
"resolved": "https://registry.npmjs.org/ethereumjs-testrpc-sc/-/ethereumjs-testrpc-sc-6.0.3.tgz", "resolved": "https://registry.npmjs.org/ethereumjs-testrpc-sc/-/ethereumjs-testrpc-sc-6.0.4.tgz",
"integrity": "sha512-TAKhGUnG1KSQ6ofGWzjduVpOrBCZbELsHzw46dpMyE3kVEcXCHT6nlVRj110shZvBfNmXocmxVqRWv1bEuhTFA==", "integrity": "sha512-AIW/+tzBMHIHmKjgNzOpZgncp6vgqZhNGIliZjrzrpNnqpOWtMnwlDr2/O3FOZP0RAL777pfPZaLMNAtfng4fA==",
"requires": { "requires": {
"webpack": "3.8.1" "webpack": "3.8.1"
} }
@ -1959,7 +1959,7 @@
"ethjs-util": "0.1.4", "ethjs-util": "0.1.4",
"keccak": "1.3.0", "keccak": "1.3.0",
"rlp": "2.0.0", "rlp": "2.0.0",
"secp256k1": "3.3.0" "secp256k1": "3.3.1"
} }
}, },
"ethereumjs-vm": { "ethereumjs-vm": {
@ -1995,7 +1995,7 @@
"create-hash": "1.1.3", "create-hash": "1.1.3",
"keccakjs": "0.2.1", "keccakjs": "0.2.1",
"rlp": "2.0.0", "rlp": "2.0.0",
"secp256k1": "3.3.0" "secp256k1": "3.3.1"
} }
} }
} }
@ -4234,7 +4234,7 @@
"create-hash": "1.1.3", "create-hash": "1.1.3",
"keccakjs": "0.2.1", "keccakjs": "0.2.1",
"rlp": "2.0.0", "rlp": "2.0.0",
"secp256k1": "3.3.0" "secp256k1": "3.3.1"
} }
} }
} }
@ -5319,9 +5319,9 @@
"integrity": "sha512-kKvNJn6Mm93gAczWVJg7wH+wGYWNrDHdWvpUmHyEsgCtIwwo3bqPtV4tR5tuPaUhTOo/kvhVwd8XwwOllGYkbg==" "integrity": "sha512-kKvNJn6Mm93gAczWVJg7wH+wGYWNrDHdWvpUmHyEsgCtIwwo3bqPtV4tR5tuPaUhTOo/kvhVwd8XwwOllGYkbg=="
}, },
"secp256k1": { "secp256k1": {
"version": "3.3.0", "version": "3.3.1",
"resolved": "https://registry.npmjs.org/secp256k1/-/secp256k1-3.3.0.tgz", "resolved": "https://registry.npmjs.org/secp256k1/-/secp256k1-3.3.1.tgz",
"integrity": "sha512-CbrQoeGG5V0kQ1ohEMGI+J7oKerapLTpivLICBaXR0R4HyQcN3kM9itLsV5fdpV1UR1bD14tOkJ1xughmlDIiQ==", "integrity": "sha512-lygjgfjzjBHblEDDkppUF5KK1EeVk6P/Dv2MsJZpYIR3vW5TKFRexOFkf0hHy9J5YxEpjQZ6x98Y3XQpMQO/vA==",
"dev": true, "dev": true,
"requires": { "requires": {
"bindings": "1.3.0", "bindings": "1.3.0",

@ -22,7 +22,7 @@
"license": "ISC", "license": "ISC",
"dependencies": { "dependencies": {
"death": "^1.1.0", "death": "^1.1.0",
"ethereumjs-testrpc-sc": "6.0.3", "ethereumjs-testrpc-sc": "6.0.4",
"istanbul": "^0.4.5", "istanbul": "^0.4.5",
"keccakjs": "^0.2.1", "keccakjs": "^0.2.1",
"req-cwd": "^1.0.1", "req-cwd": "^1.0.1",

@ -3,5 +3,7 @@
const Expensive = artifacts.require('./Expensive.sol'); const Expensive = artifacts.require('./Expensive.sol');
contract('Expensive', () => { contract('Expensive', () => {
it('should deploy', () => Expensive.deployed()); it('should deploy', async () => {
const instance = await Expensive.new()
});
}); });

@ -6,9 +6,8 @@ pragma solidity ^0.4.2;
contract Expensive { contract Expensive {
mapping (uint => address) map; mapping (uint => address) map;
function Expensive(){ function Expensive(){
for(uint i = 0; i < 250; i++ ){ for(uint i = 0; i < 1000; i++ ){
map[i] = address(this); map[i] = address(this);
} }
} }

Loading…
Cancel
Save