We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
it will look something like this
[ { "inputs": [ { "internalType": "address", "name": "_strategy", "type": "address" } ], "stateMutability": "nonpayable", "type": "constructor" }, { "anonymous": false,
The text was updated successfully, but these errors were encountered:
while web3 is
import Web3 from 'web3' declare const window: any const provider = process.browser && window !== undefined && window.ethereum !== undefined ? window.ethereum : 'https://bsc-dataseed.binance.org/' const web3: any = new Web3(provider)
abi is the json file
import abiFile from '../../data/abis/filename.json'
address is the contract address , which in this case 0x8e33802adb469571e63a9677b453cfcd45852fe3
new web3.eth.Contract(abi, address);
const discountBP = await contract.methods.getDiscountBP(account).call()
Sorry, something went wrong.
No branches or pull requests
it will look something like this
The text was updated successfully, but these errors were encountered: