空投第4篇:在 Base Testnet 上部署智能合约并领取“Base Early Builder”NFT

post image

一、如何领取NFT Base Builder?

  • 将 Goerli 测试网桥接到 Base Goerli 测试网

  • 部署你的智能合约

  • 领取 NFT

二、将 Goerli 测试网桥接到 Base Goerli 测试网

post image

三、智能合约部署

// 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 文件。

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

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

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

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

post image
  • 点击“Send Transaction” ,确认

注意:确保Gas为 “Agressive”状态

post image
  • 检查你的Transsaction,并复制你的合约

post image
post image

完成后进入下一步

四、申请你的NFT

post image
  • 领取你的 NFT

post image
  • 完成

post image