From 8a7d13f6ee6d64dd988f4e3e0204380e280f15d4 Mon Sep 17 00:00:00 2001 From: Conner Gallagher Date: Mon, 8 May 2023 21:45:29 -0600 Subject: [PATCH] format --- javascript/solana.js/README.md | 11 ----------- rust/switchboard-v2/README.md | 5 +---- 2 files changed, 1 insertion(+), 15 deletions(-) diff --git a/javascript/solana.js/README.md b/javascript/solana.js/README.md index f162283..afb3318 100644 --- a/javascript/solana.js/README.md +++ b/javascript/solana.js/README.md @@ -49,8 +49,6 @@ npm i --save @switchboard-xyz/solana.js ### Load Switchboard Program - - ```ts import { Connection } from '@solana/web3.js'; import { @@ -65,13 +63,8 @@ const program = await SwitchboardProgram.load( ); ``` - - - ### Create a Queue - - ```ts import { QueueAccount } from '@switchboard-xyz/solana.js'; @@ -89,7 +82,3 @@ const [queueAccount, txnSignature] = await QueueAccount.create(program, { }); const queue = await queueAccount.loadData(); ``` - - - - diff --git a/rust/switchboard-v2/README.md b/rust/switchboard-v2/README.md index bdf0616..a858a67 100644 --- a/rust/switchboard-v2/README.md +++ b/rust/switchboard-v2/README.md @@ -53,8 +53,6 @@ switchboard-v2 = "0.1.23" ### Read Latest Result - - ```rust use anchor_lang::solana_program::clock; use std::convert::TryInto; @@ -63,7 +61,7 @@ use switchboard_v2::{AggregatorAccountData, SwitchboardDecimal, SWITCHBOARD_PROG // check feed owner let owner = *aggregator.owner; if owner != SWITCHBOARD_PROGRAM_ID { - return Err(error!(ErrorCode::InvalidSwitchboardAccount)); + return Err(error!(ErrorCode::InvalidSwitchboardAccount)); } // deserialize account info @@ -82,4 +80,3 @@ feed.check_confidence_interval(SwitchboardDecimal::from_f64(0.80))?; ``` ', -