From 58f282148a69f1f0f4ab989e185a7492cb6128aa Mon Sep 17 00:00:00 2001 From: Wade <39545122+MuHongWeiWei@users.noreply.github.com> Date: Thu, 15 Feb 2024 18:47:14 +0800 Subject: [PATCH] Update readme.md fix upgrade solidity version fix Ownable constructor --- 54_CrossChainBridge/readme.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/54_CrossChainBridge/readme.md b/54_CrossChainBridge/readme.md index 45ed490e9..7c1932150 100644 --- a/54_CrossChainBridge/readme.md +++ b/54_CrossChainBridge/readme.md @@ -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"; @@ -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); }