undo whirligig
This commit is contained in:
parent
cf3f745585
commit
e549b850b5
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue