undo whirligig

This commit is contained in:
saml33 2023-11-09 13:40:42 +11:00
parent cf3f745585
commit e549b850b5
1 changed files with 2 additions and 8 deletions

View File

@ -321,15 +321,9 @@ const mangoStore = create<MangoStore>()(
let connection: Connection
try {
connection = new web3.Connection(
`${rpcUrl}/whirligig/`,
CONNECTION_COMMITMENT,
)
connection = new web3.Connection(rpcUrl, CONNECTION_COMMITMENT)
} catch {
connection = new web3.Connection(
`${ENDPOINT.url}/whirligig/`,
CONNECTION_COMMITMENT,
)
connection = new web3.Connection(ENDPOINT.url, CONNECTION_COMMITMENT)
}
const provider = new AnchorProvider(connection, emptyWallet, options)
provider.opts.skipPreflight = true