diff --git a/service/operator/get_support_entry_point_execute.go b/service/operator/get_support_entry_point_execute.go index 69d4af70..ac38f42c 100644 --- a/service/operator/get_support_entry_point_execute.go +++ b/service/operator/get_support_entry_point_execute.go @@ -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 } diff --git a/service/operator/get_support_entry_point_execute_test.go b/service/operator/get_support_entry_point_execute_test.go index e7a7bc07..0ffbeed1 100644 --- a/service/operator/get_support_entry_point_execute_test.go +++ b/service/operator/get_support_entry_point_execute_test.go @@ -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) }