anza-xyz / wallet-standard

Solana extensions to the Wallet Standard.
Apache License 2.0
80 stars 42 forks source link

Fix transaction serialize/deserialize bugs in ghost wallet. #40

Closed yrliou closed 8 months ago

yrliou commented 8 months ago

Contribute what we have fixed in https://github.com/brave/wallet-standard-brave back to the reference wallet implementation. Most codes are actually from wallet-adapter.

yrliou commented 8 months ago

@jordaaash Seems to be, I was seeing below errors:

[4:09:02 PM] Building project '/Users/yrliou/solana-wallet-standard/packages/wallets/ghost/tsconfig.cjs.json'...

src/wallet.ts:242:41 - error TS2339: Property 'serialize' does not exist on type 'never'.

242                       signedTransaction.serialize({
                                            ~~~~~~~~~

[4:09:04 PM] Project 'tsconfig.esm.json' is out of date because output file 'lib/esm/account.js' does not exist

[4:09:04 PM] Building project '/Users/yrliou/solana-wallet-standard/packages/wallets/ghost/tsconfig.esm.json'...

src/wallet.ts:242:41 - error TS2339: Property 'serialize' does not exist on type 'never'.

242                       signedTransaction.serialize({
                                            ~~~~~~~~~