The Most Powerful Web3 IDE
Write, compile, and deploy smart contracts in seconds. Desktop-native, AI-powered, built for the decentralized future.
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.24;
contract SimpleStorage {
uint256 private storedValue;
address public owner;
event ValueChanged(uint256 newValue);
modifier onlyOwner() {
require(msg.sender == owner);
_;
}
constructor() {
owner = msg.sender;
}
function store(uint256 value) public onlyOwner {
storedValue = value;
emit ValueChanged(value);
}
function retrieve() public view returns (uint256) {
✓ Compilation successful
Gas estimate: 214,832
Deploying to Sepolia...