LogoLogo
  • Overview
    • Introduction
    • Features
    • Consensus PoSa
  • Building on Bahamut
    • Overview
    • Network Endpoints
    • Deploy Smart Contracts
      • Using Hardhat
        • Create a project
        • Compiling the contract
      • Using Remix
        • Writing a Smart Contract
        • Compiling the contract
    • Deploy a Token
    • Deploy an NFT
    • Explorer
    • Bridge
    • About $FTN
  • Become a validator
    • Step 1: Install the Required Files
    • Step 2: Run the Node
    • Step 3: Set Up Your Wallet
    • Step 4: Generate Validator Keys
    • Step 5: Import Validator Keys and Launch the Validator Client
    • Step 6: Submit Deposit Data
    • Step 7: Set Withdrawal Credentials (BLS to Execution)
  • Validator Checklist
  • Staking Withdrawals
  • Difference on Bahamut Staking vs. Lolik
  • Disclosure
    • Disclaimers
    • Risk Statement
Powered by GitBook
On this page
  1. Building on Bahamut
  2. Deploy Smart Contracts
  3. Using Remix

Writing a Smart Contract

// SPDX-License-Identifier: MIT

// Specifies that the source code is for a version

// of Solidity greater than 0.8.15

pragma solidity ^0.8.15;

contract HelloWorld {

// A publicly accessible function that takes a string as a parameter

// and echoes the `message`

function echo(string memory message) public pure returns (string memory) {

return message;

}

}

PreviousUsing RemixNextCompiling the contract

Last updated 8 months ago