diff --git a/common/price_compoent/price_util.go b/common/price_compoent/price_util.go index 55db47e..8d37c3b 100644 --- a/common/price_compoent/price_util.go +++ b/common/price_compoent/price_util.go @@ -59,6 +59,9 @@ func GetPriceUsd(tokenType global_const.TokenType) (float64, error) { res, _ := http.DefaultClient.Do(req) defer func(Body io.ReadCloser) { + if Body == nil { + return + } err := Body.Close() if err != nil { logrus.Error("close body error: ", err) diff --git a/config/basic_config.json b/config/basic_config.json index 061fa5c..010f898 100644 --- a/config/basic_config.json +++ b/config/basic_config.json @@ -121,8 +121,7 @@ }, "support_paymaster": { "ethereum-sepolia": [ - "0xF2147CA7f18e8014b76e1A98BaffC96ebB90a29f", - "0x3Da96267B98a33267249734FD8FFeC75093D3085" + "0xF2147CA7f18e8014b76e1A98BaffC96ebB90a29f" ], "optimism-sepolia": [ "0xF2147CA7f18e8014b76e1A98BaffC96ebB90a29f", diff --git a/service/operator/operator_test.go b/service/operator/operator_test.go index 68311b7..1c72479 100644 --- a/service/operator/operator_test.go +++ b/service/operator/operator_test.go @@ -134,9 +134,10 @@ func TestOperator(t *testing.T) { "Test_NoSpectCode_TryPayUserOpExecute", func(t *testing.T) { request := model.UserOpRequest{ - StrategyCode: "3123124__7dtFu", - Network: global_const.EthereumSepolia, - UserOp: *utils.GenerateMockUservOperation(), + StrategyCode: "8bced19b-505e-4d11-ae80-abbee3d3a38c", + Network: global_const.EthereumSepolia, + UserOp: *utils.GenerateMockUservOperation(), + UserPayErc20Token: global_const.TokenTypeUSDT, } testTryPayUserOpExecute(t, &request) },