Skip to content

Commit a2edb73

Browse files
committed
update docs
1 parent a9ebb50 commit a2edb73

File tree

4 files changed

+10
-7
lines changed

4 files changed

+10
-7
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
## QuickStart
44

5+
![](./assets/intro.mp4)
6+
57
**You need run 3 app, using 3 terminals**:
68

79
1. Frontend

assets/intro.mp4

15.9 MB
Binary file not shown.

smartcontracts/src/Counter.sol

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ contract Counter {
2626
emit YouCall(msg.sender, msg.value);
2727
}
2828

29-
function youETHBalance() public {
30-
emit YourBalance(msg.sender, address(this).balance);
29+
function yourETHBalance() public {
30+
emit YourBalance(msg.sender, msg.sender.balance);
3131
}
3232
}

ui/contracts/deployedContracts.ts

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11

2-
import { GenericContractsDeclaration } from "~~/utils/fwt/contract";
2+
import { GenericContractsDeclaration } from "~~/utils/fwt/contract";
33

4-
const deployedContracts = {
5-
31337: {"Counter": {"address": "0x9e545e3c0baab3e08cdfd552c960a1050f373042", "abi": [{"type": "function", "name": "getError", "inputs": [{"name": "yourAmount", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "string", "internalType": "string"}], "stateMutability": "pure"}, {"type": "function", "name": "increment", "inputs": [], "outputs": [], "stateMutability": "nonpayable"}, {"type": "function", "name": "launchEvent", "inputs": [], "outputs": [], "stateMutability": "payable"}, {"type": "function", "name": "number", "inputs": [], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}], "stateMutability": "view"}, {"type": "function", "name": "setNumber", "inputs": [{"name": "newNumber", "type": "uint256", "internalType": "uint256"}], "outputs": [], "stateMutability": "nonpayable"}, {"type": "function", "name": "youETHBalance", "inputs": [], "outputs": [], "stateMutability": "nonpayable"}, {"type": "event", "name": "YouCall", "inputs": [{"name": "caller", "type": "address", "indexed": false, "internalType": "address"}, {"name": "amount", "type": "uint256", "indexed": false, "internalType": "uint256"}], "anonymous": false}, {"type": "event", "name": "YourBalance", "inputs": [{"name": "caller", "type": "address", "indexed": false, "internalType": "address"}, {"name": "amount", "type": "uint256", "indexed": false, "internalType": "uint256"}], "anonymous": false}, {"type": "error", "name": "CustomError", "inputs": [{"name": "message", "type": "string", "internalType": "string"}, {"name": "yourAmount", "type": "uint256", "internalType": "uint256"}]}]}}
6-
} as const;
4+
const deployedContracts = {
5+
31337: {"Counter": {"address": "0x0165878a594ca255338adfa4d48449f69242eb8f", "abi": [{"type": "function", "name": "getError", "inputs": [{"name": "yourAmount", "type": "uint256", "internalType": "uint256"}], "outputs": [{"name": "", "type": "string", "internalType": "string"}], "stateMutability": "pure"}, {"type": "function", "name": "increment", "inputs": [], "outputs": [], "stateMutability": "nonpayable"}, {"type": "function", "name": "launchEvent", "inputs": [], "outputs": [], "stateMutability": "payable"}, {"type": "function", "name": "number", "inputs": [], "outputs": [{"name": "", "type": "uint256", "internalType": "uint256"}], "stateMutability": "view"}, {"type": "function", "name": "setNumber", "inputs": [{"name": "newNumber", "type": "uint256", "internalType": "uint256"}], "outputs": [], "stateMutability": "nonpayable"}, {"type": "function", "name": "yourETHBalance", "inputs": [], "outputs": [], "stateMutability": "nonpayable"}, {"type": "event", "name": "YouCall", "inputs": [{"name": "caller", "type": "address", "indexed": false, "internalType": "address"}, {"name": "amount", "type": "uint256", "indexed": false, "internalType": "uint256"}], "anonymous": false}, {"type": "event", "name": "YourBalance", "inputs": [{"name": "caller", "type": "address", "indexed": false, "internalType": "address"}, {"name": "amount", "type": "uint256", "indexed": false, "internalType": "uint256"}], "anonymous": false}, {"type": "error", "name": "CustomError", "inputs": [{"name": "message", "type": "string", "internalType": "string"}, {"name": "yourAmount", "type": "uint256", "internalType": "uint256"}]}]}}
6+
} as const;
77

8-
export default deployedContracts satisfies GenericContractsDeclaration;
8+
export default deployedContracts satisfies GenericContractsDeclaration;
9+

0 commit comments

Comments
 (0)