Skip to content

Commit

Permalink
update API
Browse files Browse the repository at this point in the history
  • Loading branch information
cherry-yl-sh committed Mar 14, 2024
1 parent 400eeb8 commit 22a9b18
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 12 deletions.
20 changes: 9 additions & 11 deletions service/operator/get_support_entry_point_execute.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,13 @@ import (
"AAStarCommunity/EthPaymaster_BackService/common/types"
)

func GetSupportEntrypointExecute(network string) (*model.GetSupportEntryPointResponse, error) {
return &model.GetSupportEntryPointResponse{
EntrypointDomains: &[]model.EntrypointDomain{
{
Address: "0x0576a174D229E3cFA37253523E645A78A0C91B57",
Desc: "desc",
NetWork: types.Sepolia,
StrategyId: "1",
},
},
}, nil
func GetSupportEntrypointExecute(network string) (*[]model.EntrypointDomain, error) {
entrypoints := make([]model.EntrypointDomain, 0)
entrypoints = append(entrypoints, model.EntrypointDomain{
Address: "0x0576a174D229E3cFA37253523E645A78A0C91B57",
Desc: "desc",
NetWork: types.Sepolia,
StrategyId: "1",
})
return &entrypoints, nil
}
2 changes: 1 addition & 1 deletion service/operator/get_support_entry_point_execute_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ import (
func TestGetSupportEntrypointExecute(t *testing.T) {
res, err := GetSupportEntrypointExecute("network")
assert.NoError(t, err)
t.Log(res.EntrypointDomains)
t.Log(res)
}

0 comments on commit 22a9b18

Please sign in to comment.