Skip to content

Commit

Permalink
Fixed rust linting
Browse files Browse the repository at this point in the history
  • Loading branch information
amit-momin committed Feb 7, 2025
1 parent ea16117 commit afc047e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ pub mod contract_reader_interface_secondary {
test_struct_account.accounts = data.accounts;
test_struct_account.different_field = data.different_field;
test_struct_account.big_field = data.big_field;
test_struct_account.account_struct = data.account_struct.clone();
test_struct_account.nested_dynamic_struct = data.nested_dynamic_struct.clone();
test_struct_account.nested_static_struct = data.nested_static_struct.clone();
test_struct_account.account_struct = data.account_struct;
test_struct_account.nested_dynamic_struct = data.nested_dynamic_struct;
test_struct_account.nested_static_struct = data.nested_static_struct;

Ok(())
}
Expand Down
6 changes: 3 additions & 3 deletions contracts/programs/contract-reader-interface/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ pub mod contract_reader_interface {
test_struct_account.accounts = data.accounts;
test_struct_account.different_field = data.different_field;
test_struct_account.big_field = data.big_field;
test_struct_account.account_struct = data.account_struct.clone();
test_struct_account.nested_dynamic_struct = data.nested_dynamic_struct.clone();
test_struct_account.nested_static_struct = data.nested_static_struct.clone();
test_struct_account.account_struct = data.account_struct;
test_struct_account.nested_dynamic_struct = data.nested_dynamic_struct;
test_struct_account.nested_static_struct = data.nested_static_struct;

Ok(())
}
Expand Down
8 changes: 0 additions & 8 deletions integration-tests/relayinterface/chain_components_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,6 @@ import (
solanautils "github.com/smartcontractkit/chainlink-solana/pkg/solana/utils"
)

const (
SolanaContractReaderGetLatestValueAsValuesDotValue = "Gets the latest value as a values.Value for Solana"
SolanaContractReaderGetLatestValue = "Gets the latest value for Solana"
SolanaContractReaderBatchGetLatestValue = "BatchGetLatestValues works for Solana"
SolanaContractReaderBatchGetLatestValueDifferentParamsResultsRetainOrder = "BatchGetLatestValues supports same read with different params and results retain order from request for Solana"
SolanaContractReaderBatchGetLatestValueDifferentParamsResultsRetainOrderMultipleContracts = "BatchGetLatestValues supports same read with different params and results retain order from request even with multiple contracts for Solana"
)

func TestChainComponents(t *testing.T) {
t.Parallel()
helper := &helper{}
Expand Down

0 comments on commit afc047e

Please sign in to comment.