Sebastian Kippe 53fafc1c78
Update ipfs-http-client (for node >= 14)
Updates the client library and API usage to work with the latest
version, and more importantly, with current node.js LTS.
2022-04-28 19:19:58 +02:00

23 lines
540 B
JavaScript

const deprecate = require('../utils/deprecate');
class Base {
constructor (contract) {
this.contract = contract;
}
get functions () {
deprecate('The property `functions` is deprecated. contract functions are now directly defined on the ethers contract object. https://github.com/ethers-io/ethers.js/issues/920#issuecomment-650836642');
return this.contract;
}
get address () {
return this.contract.address;
}
on (type, callback) {
return this.contract.on(type, callback);
}
}
module.exports = Base;