Skip to content

Instantly share code, notes, and snippets.

@valera-rozuvan
Created December 27, 2023 14:19
Show Gist options
  • Save valera-rozuvan/d17ca782134bad77e66d5d921720fda7 to your computer and use it in GitHub Desktop.
Save valera-rozuvan/d17ca782134bad77e66d5d921720fda7 to your computer and use it in GitHub Desktop.
Vue.js + Metamask + Ethereum : part 1

Text instruction used in the video:

1. https://metamask.io/

first - create a Metamask address

2. https://chainid.network/

second - add the sepolia testnet to Metamask
network ID is 11155111

3. in metamask - switch to testnet

4. https://github.com/eth-clients/sepolia -> test net GitHub
find link to faucet
https://sepolia-faucet.pk910.de/

go mine some free test ether for your sepolia address

5. https://remix.ethereum.org/

go write the code for your contract

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.7;

contract SimpleStorage {
  string strStore;

  constructor(string memory InitialSentence) {
    strStore = InitialSentence;
  }

  function getSentence() public view returns (string memory) {
    return strStore;
  }

  function setSentence(string calldata NewSentence) external {
    strStore = NewSentence;
  }
}

6. compile

7. deploy using metasmask (Injected Provider - Metamask)

8. run the set functions - see on https://sepolia.etherscan.io/ transaction data
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment