From 67eea571a9693d61a3b312793c128bfba6318fd9 Mon Sep 17 00:00:00 2001 From: Hunter Cote Date: Fri, 11 Oct 2024 15:13:26 -0400 Subject: [PATCH] fix: add coin.TRANSFER capability --- src/App.tsx | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/App.tsx b/src/App.tsx index 6c60019..64fa04e 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -95,7 +95,15 @@ function App() { keys: [receiverPublicKey], pred: "keys-all", }) - .addSigner(senderPublicKey, (withCapability) => [withCapability("coin.GAS")]) + .addSigner(senderPublicKey, (withCapability) => [ + withCapability("coin.GAS"), + withCapability( + "coin.TRANSFER", + userMetadata.publicAddress, + toAccount, + amount + ), + ]) .setMeta({ chainId, senderAccount: userMetadata.publicAddress }) .setNetworkId(networkId) .createTransaction();