EVM Side Setup
Last updated
Last updated
Here we're going to use http://remix.ethereum.org/ to compile and deploy our smart contracts
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
change import in binancetokenpeg
BEP20TokenImplementation.sol
and binancetokenpeg.sol
should both compile when you click on them.
Onto round 2.