Open SantiagoDevRel opened 2 months ago
Ok, I think I got it...?
import { Web3PluginBase } from "web3";
export class FaucetPlugin extends Web3PluginBase { public pluginNamespace = "faucet"; public web3: Web3;
Right! by extending the Web3PluginBase
you will be able to use the this
inside the plugin!
https://github.com/evelynnmimijae/web3-plugin-faucettestnet2/blob/16ddfb5d79c41898243a5625fc8567529cafbeb6/src/index.ts#L24
Don't forget that for creating plugins we must extend from the
Web3PluginBase
module