From 1ea83126ea98dd856c44f3d67165e4f4c8b0ab6b Mon Sep 17 00:00:00 2001 From: Wei Su Date: Tue, 26 Sep 2023 17:38:38 +0800 Subject: [PATCH] doc: update send transaction --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 7664167..9bf0948 100644 --- a/README.md +++ b/README.md @@ -29,10 +29,10 @@ if (connected) { ```typescript async function sendTransaction() { - const res = await app?.cyberWallet - ?.sendTransaction({ - to: "0x00000000000...", - value: parseUnits("0.0001", 18), + const res = await app?.cyberWallet?.optimism + .sendTransaction({ + to: "0x1234134234", + value: "0.000000000000000001", data: "0x", }) .catch((err: any) => console.log({ err }));