Skip to content

Commit

Permalink
简单修改
Browse files Browse the repository at this point in the history
  • Loading branch information
v1xingyue committed Dec 15, 2023
1 parent 21ef735 commit 297025c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 2 additions & 0 deletions examples/sui-tool/move/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Move.lock
publish.json
6 changes: 4 additions & 2 deletions examples/sui-tool/src/background/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,16 @@ chrome.runtime.onMessage.addListener(async (message, sender, sendResponse) => {
const privateKey = await storage.get("secret")
const privateKeyBytes = fromB64(privateKey)
// console.log(privateKeyBytes)
sendResponse({ privateKeyBytes })
// sendResponse({ privateKeyBytes })
const signer = Ed25519Keypair.fromSecretKey(privateKeyBytes)
console.log(signer.toSuiAddress().toString())
console.log("caller address -> ", signer.toSuiAddress().toString())
const tx = await client.signAndExecuteTransactionBlock({
signer: signer,
transactionBlock: txb
})

console.log("transaction : ", tx)

sendResponse(tx)
}
})

0 comments on commit 297025c

Please sign in to comment.