Skip to content

Commit b300f7f

Browse files
committed
Fix linter
1 parent 5391f7f commit b300f7f

File tree

3 files changed

+16
-13
lines changed

3 files changed

+16
-13
lines changed

chains/evm/calls/contracts/rhinestone.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ func NewRhinestoneContract() *RhinestoneContract {
4747
return &RhinestoneContract{
4848
abi: consts.RhinestoneABI,
4949
}
50-
5150
}
5251

5352
func (c *RhinestoneContract) DecodeFillCall(calldata []byte) (*FillInput, error) {

chains/evm/message/across_test.go

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -138,19 +138,22 @@ func (s *AcrossMessageHandlerTestSuite) Test_HandleMessage_ValidDeposit() {
138138
s.mockHost.EXPECT().Peerstore().Return(p)
139139

140140
deposit := &events.AcrossDeposit{
141-
InputToken: fillBytes32("input_token_address_1234567890"),
142-
OutputToken: fillBytes32("output_token_address_0987654321"),
143-
InputAmount: big.NewInt(1000000000000000000), // 1e18
144-
OutputAmount: big.NewInt(990000000000000000), // 0.99e18
145-
DestinationChainId: big.NewInt(137), // Polygon chain ID
146-
DepositId: big.NewInt(123456789),
147-
QuoteTimestamp: uint32(time.Now().Unix()),
141+
InputToken: fillBytes32("input_token_address_1234567890"),
142+
OutputToken: fillBytes32("output_token_address_0987654321"),
143+
InputAmount: big.NewInt(1000000000000000000), // 1e18
144+
OutputAmount: big.NewInt(990000000000000000), // 0.99e18
145+
DestinationChainId: big.NewInt(137), // Polygon chain ID
146+
DepositId: big.NewInt(123456789),
147+
//nolint:gosec
148+
QuoteTimestamp: uint32(time.Now().Unix()),
149+
//nolint:gosec
148150
ExclusivityDeadline: uint32(time.Now().Add(10 * time.Minute).Unix()),
149-
FillDeadline: uint32(time.Now().Add(1 * time.Hour).Unix()),
150-
Depositor: fillBytes32("depositor_address_abcdef123456"),
151-
Recipient: fillBytes32("recipient_address_654321fedcba"),
152-
ExclusiveRelayer: fillBytes32("relayer_address_112233445566"),
153-
Message: []byte("Sample message for AcrossDeposit"),
151+
//nolint:gosec
152+
FillDeadline: uint32(time.Now().Add(1 * time.Hour).Unix()),
153+
Depositor: fillBytes32("depositor_address_abcdef123456"),
154+
Recipient: fillBytes32("recipient_address_654321fedcba"),
155+
ExclusiveRelayer: fillBytes32("relayer_address_112233445566"),
156+
Message: []byte("Sample message for AcrossDeposit"),
154157
}
155158
s.mockDepositFetcher.EXPECT().Deposit(gomock.Any(), gomock.Any(), gomock.Any()).Return(deposit, nil)
156159

protocol/rhinestone/orchestrator_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// nolint
12
package rhinestone_test
23

34
import (

0 commit comments

Comments
 (0)