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();