helius-labs / helius-sdk

123 stars 39 forks source link

createSmartTransaction `serialize` requiring all signatures #111

Closed chukwumaokere closed 3 weeks ago

chukwumaokere commented 2 months ago

Is there a possibility in which we can modify serialize in createSmartTransactions to optionally not require all signatures? https://github.com/helius-labs/helius-sdk/blob/main/src/RpcClient.ts#L596

Right now, when I want to create a smart transaction I get a serialize error due to the fact that signatures are missing. BUT this is expected in my flow where im creating the Transaction on the backend (using legacy transaction) and serializing it and sending it to the frontend to be signed by the client, then sending it back to the backend to be broadcasted.

chukwumaokere commented 2 months ago

The code im proposing we can use for serializing and encoding encode(transaction.serialize({requireAllSignatures: false, verifySignatures: true}))

0xIchigo commented 1 month ago

gm @chukwumaokere! I apologize for the inconvenience — I've finally gotten around to making a PR. Please look at the following and let me know what you think. Thanks! https://github.com/helius-labs/helius-sdk/pull/117

0xIchigo commented 3 weeks ago

Can be considered closed by #117