https://github.com/paschal533/swisstronik-developer-challenge-2
Create a smart contract with a single private state variable (string or uint) and develop functions to modify and retrieve this value. Deploy the contract to the Mumbai testnet and Swisstronik testnet, and write a script to access this variable using the RPC method eth_getStorageAt() on both networks.
https://github.com/paschal533/swisstronik-developer-challenge-2
blockchain solidity web3
Last synced: about 1 month ago
JSON representation
Create a smart contract with a single private state variable (string or uint) and develop functions to modify and retrieve this value. Deploy the contract to the Mumbai testnet and Swisstronik testnet, and write a script to access this variable using the RPC method eth_getStorageAt() on both networks.
- Host: GitHub
- URL: https://github.com/paschal533/swisstronik-developer-challenge-2
- Owner: paschal533
- Created: 2023-10-09T10:54:03.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-10-10T06:38:16.000Z (over 2 years ago)
- Last Synced: 2025-04-02T15:14:18.301Z (about 1 year ago)
- Topics: blockchain, solidity, web3
- Language: JavaScript
- Homepage: https://explorer-evm.testnet.swisstronik.com/address/0x0Ad424f5EbD0bf829DC4E1e995E153B27223b1af
- Size: 276 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Swisstronik Developer Challenge 2
Create a smart contract with a single private state variable (string or uint) and develop functions to modify and retrieve this value. Deploy the contract to the Mumbai testnet and Swisstronik testnet, and write a script to access this variable using the RPC method eth_getStorageAt() on both networks.
# 🛠test the smart-contract:
```
npm install
npx hardhat test
```
# 🎡 Access the variable using the RPC method eth_getStorageAt() on both networks
```
npx hardhat run scripts/accessStorage.js
```
# ✔ Deployed Smart Contract address on Swisstronik testnet
```
https://explorer-evm.testnet.swisstronik.com/address/0x0Ad424f5EbD0bf829DC4E1e995E153B27223b1af
```
# ✔ Deployed Smart Contract address on Mumbai testnet
```
https://mumbai.polygonscan.com/address/0x5d8248d29f9d36f44ff81653b8fb4f21b26a4e1c
```