Skip to content

Commit

Permalink
update bug
Browse files Browse the repository at this point in the history
  • Loading branch information
cherry-yl-sh committed Jun 17, 2024
1 parent 9af37d8 commit 160da78
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
3 changes: 3 additions & 0 deletions common/price_compoent/price_util.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
3 changes: 1 addition & 2 deletions config/basic_config.json
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,7 @@
},
"support_paymaster": {
"ethereum-sepolia": [
"0xF2147CA7f18e8014b76e1A98BaffC96ebB90a29f",
"0x3Da96267B98a33267249734FD8FFeC75093D3085"
"0xF2147CA7f18e8014b76e1A98BaffC96ebB90a29f"
],
"optimism-sepolia": [
"0xF2147CA7f18e8014b76e1A98BaffC96ebB90a29f",
Expand Down
7 changes: 4 additions & 3 deletions service/operator/operator_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
},
Expand Down

0 comments on commit 160da78

Please sign in to comment.