Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
EasterTheBunny committed Nov 18, 2024
1 parent 3c98680 commit 4782da4
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion pkg/solana/config/chain_reader.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions pkg/solana/config/testChainReader_invalid.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
"Method": {
"anchorIDL": "test idl 1",
"encoding": "invalid",
"procedures": [{
"procedure": {
"idlAccount": "StructWithNestedStruct"
}]
}
}
}
}
Expand Down
12 changes: 6 additions & 6 deletions pkg/solana/config/testChainReader_valid.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -26,7 +26,7 @@
"length": 10
}
}
}]
}
}
}
},
Expand All @@ -35,9 +35,9 @@
"Method": {
"anchorIDL": "test idl 3",
"encoding": "bincode",
"procedures": [{
"procedure": {
"idlAccount": "StructWithNestedStruct"
}]
}
}
}
}
Expand Down

0 comments on commit 4782da4

Please sign in to comment.