Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Serumv3 program ID to Open Book #12

Open
skynetcap opened this issue Jan 18, 2023 · 0 comments
Open

Update Serumv3 program ID to Open Book #12

skynetcap opened this issue Jan 18, 2023 · 0 comments

Comments

@skynetcap
Copy link

Report from Discord:

throw new Error('Address not owned by program: ' + owner.toBase58());
Error: Address not owned by program: 9xQeWvG816bUx9EPjHmaT23yvVM2ZWbrrpZb9PusVFin


I created an instance of Swap

let client = new Swap(provider, tokenList) 


When i call estimate im getting the error.

    const estimatedBtc = await client.estimate({
        fromMint: new PublicKey('SRMuApVNdxXokk5GT7XD5cUUgXMBCoAz2LHeuAoKWRt'), //src
        toMint: new PublicKey('EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v'), //usdc
        amount: toNative(1),
      });  

"Used the sample from https://github.com/openbook-dex/openbook-ts/blob/master/packages/swap/examples/swap.js"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant