tested fix

This commit is contained in:
Fabian Vogelsteller 2015-07-08 11:24:49 +02:00
parent 1f5ed04033
commit 344288486b
4 changed files with 99 additions and 0 deletions

4
dist/web3-light.js vendored
View File

@ -1836,6 +1836,8 @@ var checkForContractAddress = function(contract, callback){
if(!e) {
count++;
// console.log('Checking for contract address', count);
// stop watching after 50 blocks (timeout)
if(count > 50) {
if(callback)
@ -1851,6 +1853,8 @@ var checkForContractAddress = function(contract, callback){
web3.eth.getCode(receipt.contractAddress, function(e, code){
if(code.length > 2) {
// console.log('Contract code deployed!');
contract.address = receipt.contractAddress;
if(callback)

4
dist/web3.js vendored
View File

@ -1836,6 +1836,8 @@ var checkForContractAddress = function(contract, callback){
if(!e) {
count++;
// console.log('Checking for contract address', count);
// stop watching after 50 blocks (timeout)
if(count > 50) {
if(callback)
@ -1851,6 +1853,8 @@ var checkForContractAddress = function(contract, callback){
web3.eth.getCode(receipt.contractAddress, function(e, code){
if(code.length > 2) {
// console.log('Contract code deployed!');
contract.address = receipt.contractAddress;
if(callback)

87
dist/web3.js.map vendored Normal file

File diff suppressed because one or more lines are too long

View File

@ -112,6 +112,8 @@ var checkForContractAddress = function(contract, callback){
if(!e) {
count++;
// console.log('Checking for contract address', count);
// stop watching after 50 blocks (timeout)
if(count > 50) {
if(callback)
@ -127,6 +129,8 @@ var checkForContractAddress = function(contract, callback){
web3.eth.getCode(receipt.contractAddress, function(e, code){
if(code.length > 2) {
// console.log('Contract code deployed!');
contract.address = receipt.contractAddress;
if(callback)