@@ -33,7 +33,7 @@ func ParseOutputType(s string) ([]byte, error) {
3333
3434// EvmAdvance represents decoded EvmAdvance input data.
3535type EvmAdvance struct {
36- ChainId string `json:"chain_id"`
36+ ChainID string `json:"chain_id"`
3737 AppContract string `json:"application_contract"`
3838 MsgSender string `json:"sender"`
3939 BlockNumber string `json:"block_number"`
@@ -52,7 +52,7 @@ type DecodedInput struct {
5252// DecodeInput ABI-decodes a raw input into a DecodedInput.
5353func DecodeInput (input * model.Input , parsedAbi * abi.ABI ) (* DecodedInput , error ) {
5454 decoded := make (map [string ]any )
55- if len (input .RawData ) < 4 {
55+ if len (input .RawData ) < 4 { //nolint: mnd
5656 return & DecodedInput {Input : input }, fmt .Errorf ("error: input needs at least 4 bytes" )
5757 }
5858
@@ -71,7 +71,7 @@ func DecodeInput(input *model.Input, parsedAbi *abi.ABI) (*DecodedInput, error)
7171 return & DecodedInput {Input : input }, err
7272 }
7373
74- chainId , ok1 := decoded ["chainId" ].(* big.Int )
74+ chainID , ok1 := decoded ["chainId" ].(* big.Int )
7575 appContract , ok2 := decoded ["appContract" ].(common.Address )
7676 msgSender , ok3 := decoded ["msgSender" ].(common.Address )
7777 blockNumber , ok4 := decoded ["blockNumber" ].(* big.Int )
@@ -84,7 +84,7 @@ func DecodeInput(input *model.Input, parsedAbi *abi.ABI) (*DecodedInput, error)
8484 }
8585
8686 evmAdvance := EvmAdvance {
87- ChainId : fmt .Sprintf ("0x%x" , chainId ),
87+ ChainID : fmt .Sprintf ("0x%x" , chainID ),
8888 AppContract : appContract .Hex (),
8989 MsgSender : msgSender .Hex (),
9090 BlockNumber : fmt .Sprintf ("0x%x" , blockNumber ),
@@ -171,7 +171,7 @@ type DecodedOutput struct {
171171// DecodeOutput ABI-decodes a raw output into a DecodedOutput.
172172func DecodeOutput (output * model.Output , parsedAbi * abi.ABI ) (* DecodedOutput , error ) {
173173 decodedOutput := & DecodedOutput {Output : output }
174- if len (output .RawData ) < 4 {
174+ if len (output .RawData ) < 4 { //nolint: mnd
175175 return decodedOutput , fmt .Errorf ("raw data too short" )
176176 }
177177 method , err := parsedAbi .MethodById (output .RawData [:4 ])
0 commit comments