Files
hoelee be54471760
CI / Foundry project (push) Has been cancelled
Added front-end Javascript
2024-08-17 12:19:13 +08:00

31 lines
1.1 KiB
HTML

<!doctype html>
<html>
<head>
<title>Javascript Test</title>
<script src="/pages/1/dist/bundle.js" type="text/javascript"></script>
</head>
<body>
<h2>Contract Located At Sepolia Testnet</h2>
<h3>Contract Address: 0x5F109D5Cea7BD7345EFcC1b7b7Bb7FB2693e5Fb2</h3>
<button id="connectButton" onclick="bundle.connect()">Connect</button> <br /><br />
<input id="inputNumber" type="number" />
<button id="executeButton" onclick="bundle.storeNumber()">Store Number</button><br /><br />
<button id="executeButton" onclick="bundle.retrieve()">Execute</button>
<div id="divNumber">N/A</div>
<!--script src="/pages/1/index.js" type="text/javascript"></script-->
<!--script src="/pages/1/indexProperCatch.js" type="text/javascript"></script-->
<!-- Above need run browserify -->
<!--
source .env
forge script script/DeploySimpleStorage.s.sol --rpc-url $SEPOLIA_RPC_URL --broadcast --account hoelee
yarn browserify pages/1/indexProperCatch.js --standalone bundle -o pages/1/dist/bundle.js
-->
</body>
</html>