
将 Goerli 测试网桥接到 Base Goerli 测试网
部署你的智能合约
领取 NFT
如果没有ETH Goerli测试网,请领取水龙头https://goerlifaucet.com/
转到网站 bridge https://bridge.base.org/,连接你的钱包和 Bridge。

复制这个脚本
// SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.8.2 <0.9.0;
contract testBASE {
uint256 number;
function store(uint256 num) public {
number = num;
}
function retrieve() public view returns (uint256){
return number;
}
}
在 Remix Ethereum 中,点击“New File”,创建你的 mane 文件。

进入文件,并粘贴复制的脚本

进入“Solidity compiler”,设置你的编译器“0.8.19+commit.7dd6d404”,然后点击Compile your file name


然后进入 “Deploy&run transactions”,链接钱包

钱包连接好后,点击 “Deploy”

点击“Send Transaction” ,确认
注意:确保Gas为 “Agressive”状态

检查你的Transsaction,并复制你的合约


完成后进入下一步
连接你的钱包,粘贴你的合约

领取你的 NFT

完成

