mirror of https://github.com/status-im/op-geth.git
web3.contract -> web3.eth.contract
This commit is contained in:
parent
f3b71a73e3
commit
1428dcee21
|
@ -1173,7 +1173,7 @@ web3.providers.WebSocketProvider = require('./lib/websocket');
|
|||
web3.providers.HttpRpcProvider = require('./lib/httprpc');
|
||||
web3.providers.QtProvider = require('./lib/qt');
|
||||
web3.providers.AutoProvider = require('./lib/autoprovider');
|
||||
web3.contract = require('./lib/contract');
|
||||
web3.eth.contract = require('./lib/contract');
|
||||
|
||||
module.exports = web3;
|
||||
|
||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -43,7 +43,7 @@
|
|||
|
||||
// create contract
|
||||
web3.eth.transact({code: web3.eth.solidity(source)}).then(function (address) {
|
||||
contract = web3.contract(address, desc);
|
||||
contract = web3.eth.contract(address, desc);
|
||||
document.getElementById('call').style.visibility = 'visible';
|
||||
});
|
||||
}
|
||||
|
|
2
index.js
2
index.js
|
@ -3,6 +3,6 @@ web3.providers.WebSocketProvider = require('./lib/websocket');
|
|||
web3.providers.HttpRpcProvider = require('./lib/httprpc');
|
||||
web3.providers.QtProvider = require('./lib/qt');
|
||||
web3.providers.AutoProvider = require('./lib/autoprovider');
|
||||
web3.contract = require('./lib/contract');
|
||||
web3.eth.contract = require('./lib/contract');
|
||||
|
||||
module.exports = web3;
|
||||
|
|
Loading…
Reference in New Issue