mirror of https://github.com/status-im/web3.js.git
tested fix
This commit is contained in:
parent
1f5ed04033
commit
344288486b
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue