How to use the web3-eth-contract.apply function in web3-eth-contract

To help you get started, we’ve selected a few web3-eth-contract examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github ethereum / web3.js / packages / web3-eth / src / index.js View on Github external
var Contract = function Contract() {
        BaseContract.apply(this, arguments);

        // when Eth.setProvider is called, call packageInit
        // on all contract instances instantiated via this Eth
        // instances. This will update the currentProvider for
        // the contract instances
        var _this = this;
        var setProvider = self.setProvider;
        self.setProvider = function() {
          setProvider.apply(self, arguments);
          core.packageInit(_this, [self.currentProvider]);
        };
    };
github poanetwork / bridge-ui / lib / web3-eth / index.js View on Github external
var Contract = function Contract() {
        BaseContract.apply(this, arguments);
    };
github poanetwork / tokenbridge / ui / lib / web3-eth / index.js View on Github external
var Contract = function Contract() {
        BaseContract.apply(this, arguments);
    };

web3-eth-contract

Web3 module to interact with Ethereum smart contracts.

LGPL-3.0
Latest version published 11 days ago

Package Health Score

79 / 100
Full package analysis

Similar packages