stellar / soroban-example-dapp

End-to-End Example Soroban Dapp
Apache License 2.0
1.05k stars 853 forks source link

Fixeed Error: You Must Provide a signTransaction Function #164

Closed kamalbuilds closed 3 weeks ago

kamalbuilds commented 1 month ago

Fixeed Error: You Must Provide a signTransaction Function #159

Made the below change to the form-pledge component , by which now it signs the transaction , builds the transaction using the TransactionBuilder and then sends the transaction using the server.

 const tx = await abundance.mint({ to: account, amount: amount });
        const signedXdr = await signTransaction(tx.toXDR(), {
          network: 'TESTNET',
          networkPassphrase: tx.raw.networkPassphrase,
        });
        let signed_tx = TransactionBuilder.fromXDR(
          signedXdr,
          tx.raw.networkPassphrase
        );
        const txRes = await server.sendTransaction(signed_tx);

Below screenshots as proof of the working. Screenshot 2024-07-08 163154 Screenshot 2024-07-08 163204 Screenshot 2024-07-08 163214

kamalbuilds commented 1 month ago

@Julian-dev28 Can you please start the workflow for this PR ? Thank you :)

Julian-dev28 commented 1 month ago

Hello. The call seems to execute yet tokens fail to be minted to the minter. Please see attached video

https://github.com/user-attachments/assets/291d5c42-24fc-4e9f-bab2-fee6ab36eda2

Julian-dev28 commented 3 weeks ago

This issue has been fixed by #163