EVM Side Setup
binancetokenpeg.sol
BEP20TokenImplementation.sol
Then we will use https://testnet.bscscan.com/ to verify our smart contract code and enable use to read/write to the contract.
Let's roll.
First let's upload all of the files in
./contracts/eth
- BEP20TokenImplementation.sol
- binancetokenpeg.sol
- IBEP20.sol
- ApproveAndCallFallBack.sol
- IOwned.sol
- link.sol

Now we're going to do some shenaningans to get this thing to compile.
- change the compiler version in the contract files on all the contracts above to
pragma solidity ^0.8.0;
Going up seems better than down in this case: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/utils/math/SafeMath.sol#L6
- change import in BEP20TokenImplementation
import "./IBEP20.sol";
- change import in binancetokenpeg
import "./link.sol";
import "./IBEP20.sol";
import "./IOwned.sol";
BEP20TokenImplementation.sol
and binancetokenpeg.sol
should both compile when you click on them.Onto round 2.
Last modified 2yr ago