Skip to content

Not able to place perp order #5

@ViditJain123

Description

@ViditJain123

Error in handleSubmit TypeError: Cannot read properties of undefined (reading 'toBuffer')
at getSignedMsgUserAccountPublicKey (pda.js:77:19)
at sendSwiftOrder (index.ts:329:75)
at prepSignAndSendSwiftOrder (index.ts:428:45)
at async createSwiftMarketOrder (index.ts:126:2)
at async createOpenPerpMarketOrder (index.ts:430:28)
at async DriftOperations.openPerpOrder (index.ts:410:31)
at async handleSubmit (usePerpTrading.ts:470:22)
at async onSubmit (PerpTradeForm.tsx:61:5)

I am getting this error when I am trying to place an perp order. I have all the environment variables in place and have done the setup correctly ig.

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