From cb54e7c384ca0f74d95a99aeb30a7bee0206251d Mon Sep 17 00:00:00 2001 From: leonz789 Date: Tue, 13 Aug 2024 22:34:11 +0800 Subject: [PATCH] lint --- precompiles/assets/types.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/precompiles/assets/types.go b/precompiles/assets/types.go index f47500fdb..bc016947c 100644 --- a/precompiles/assets/types.go +++ b/precompiles/assets/types.go @@ -19,8 +19,10 @@ import ( ) // oracleInfo: '[tokenName],[chainName],[tokenDecimal](,[interval],[contract](,[ChainDesc:{...}],[TokenDesc:{...}]))' -var tokenDescMatcher = regexp.MustCompile(`TokenDesc:{(.+?)}`) -var chainDescMatcher = regexp.MustCompile(`ChainDesc:{(.+?)}`) +var ( + tokenDescMatcher = regexp.MustCompile(`TokenDesc:{(.+?)}`) + chainDescMatcher = regexp.MustCompile(`ChainDesc:{(.+?)}`) +) func (p Precompile) DepositWithdrawParamsFromInputs(ctx sdk.Context, args []interface{}) (*assetskeeper.DepositWithdrawParams, error) { inputsLen := len(p.ABI.Methods[MethodDepositTo].Inputs)