From 4782da4ee2d1a8ce37f5424665d24da01ae3d36a Mon Sep 17 00:00:00 2001 From: Awbrey Hughlett Date: Mon, 18 Nov 2024 10:19:27 -0600 Subject: [PATCH] fix tests --- pkg/solana/config/chain_reader.go | 2 +- pkg/solana/config/testChainReader_invalid.json | 4 ++-- pkg/solana/config/testChainReader_valid.json | 12 ++++++------ 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/pkg/solana/config/chain_reader.go b/pkg/solana/config/chain_reader.go index 3fe9c771f..dbe9ef4ab 100644 --- a/pkg/solana/config/chain_reader.go +++ b/pkg/solana/config/chain_reader.go @@ -26,7 +26,7 @@ type ChainDataReader struct { // Encoding defines the type of encoding used for on-chain data. Currently supported // are 'borsh' and 'bincode'. Encoding EncodingType `json:"encoding" toml:"encoding"` - Procedure ChainReaderProcedure `json:"procedures" toml:"procedures"` + Procedure ChainReaderProcedure `json:"procedure" toml:"procedure"` } type EncodingType int diff --git a/pkg/solana/config/testChainReader_invalid.json b/pkg/solana/config/testChainReader_invalid.json index b428b6115..98caa8fcc 100644 --- a/pkg/solana/config/testChainReader_invalid.json +++ b/pkg/solana/config/testChainReader_invalid.json @@ -5,9 +5,9 @@ "Method": { "anchorIDL": "test idl 1", "encoding": "invalid", - "procedures": [{ + "procedure": { "idlAccount": "StructWithNestedStruct" - }] + } } } } diff --git a/pkg/solana/config/testChainReader_valid.json b/pkg/solana/config/testChainReader_valid.json index 6dfbe0626..ca75a936b 100644 --- a/pkg/solana/config/testChainReader_valid.json +++ b/pkg/solana/config/testChainReader_valid.json @@ -5,14 +5,14 @@ "Method": { "anchorIDL": "test idl 1", "encoding": "borsh", - "procedures": [{ + "procedure": { "idlAccount": "StructWithNestedStruct" - }] + } }, "MethodWithOpts": { "anchorIDL": "test idl 2", "encoding": "borsh", - "procedures": [{ + "procedure": { "idlAccount": "StructWithNestedStruct", "outputModifications": [{ "Type": "extract property", @@ -26,7 +26,7 @@ "length": 10 } } - }] + } } } }, @@ -35,9 +35,9 @@ "Method": { "anchorIDL": "test idl 3", "encoding": "bincode", - "procedures": [{ + "procedure": { "idlAccount": "StructWithNestedStruct" - }] + } } } }