Skip to content

Commit

Permalink
Update readme.md
Browse files Browse the repository at this point in the history
fix upgrade solidity version
fix Ownable constructor
  • Loading branch information
MuHongWeiWei authored Feb 15, 2024
1 parent cff756b commit 58f2821
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions 54_CrossChainBridge/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ tags:

```solidity
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.10;
pragma solidity ^0.8.20;
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
Expand All @@ -77,7 +77,7 @@ contract CrossChainToken is ERC20, Ownable {
string memory name,
string memory symbol,
uint256 totalSupply
) payable ERC20(name, symbol) {
) payable ERC20(name, symbol) Ownable(msg.sender) {
_mint(msg.sender, totalSupply);
}
Expand Down

0 comments on commit 58f2821

Please sign in to comment.