Skip to content

Swap error when use Albedo wallet in demo app (under frontend folder) #1

@ikkyu42

Description

@ikkyu42

Image

  • LOBSTR ✅
  • Albedo ❌

@yahyafakhroji I think it’s relate with this section:

const transaction = new TransactionBuilder(source, {
fee: BASE_FEE,
networkPassphrase: passphrase,
})
.addOperation(
Operation.invokeContractFunction({
contract: contractAddress,
function: "swap",
args: args,
})
)
.setTimeout(30)
.setNetworkPassphrase(passphrase)
.build();
// Specific handling for Freighter wallet
const signedTx = await kit?.signTransaction(transaction.toXDR(), {
address: publicKey,
networkPassphrase: passphrase,
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions