Hi @Prabhakaran,
I used the following tutorial: OpenZeppelin Upgrades: Step by Step Tutorial for Hardhat
I obtained Binance Smart Chain test Ether from the Faucet: https://testnet.binance.org/faucet-smart
I added the network to my Hardhat configuration
// hardhat.config.js
const { alchemyApiKey, mnemonic } = require('./secrets.json');
require("@nomiclabs/hardhat-ethers");
require('@openzeppelin/hardhat-upgrades');
/**
* @type import('hardhat/config').HardhatUserConfig
*/
module.exports = {
solidity: "0.7.3",
networks: {
rinkeby: {
url: `https://eth-rinkeby.alchemyapi.io/v2/${alchemyApiKey}`,
accounts: {mnemonic: mnemonic}
},
bsctestnet: {
url: `https://data-seed-prebsc-1-s1.binance.org:8545`,
accounts: {mnemonic: mnemonic}
}
}
};
I then deployed:
$ npx hardhat run --network bsctestnet scripts/deploy.js
Deploying Box...
Box deployed to: 0xBC67463898F41259d7acaC96cCD85a42c3bbe4c2
The proxy contract is:
I could then interact via the proxy using the console
$ npx hardhat console --network bsctestnet
> const Box = await ethers.getContractFactory("Box")
undefined
> const box = await Box.attach("0xBC67463898F41259d7acaC96cCD85a42c3bbe4c2")
undefined
> (await box.retrieve()).toString()
'42'