function signature

pull/803/head
ak 6 years ago
parent 169f035f42
commit 690e47f664
  1. 4
      api/service/restclientsupport/service.go

@ -36,7 +36,7 @@ type Service struct {
CallFaucetContract func(common.Address) common.Hash CallFaucetContract func(common.Address) common.Hash
GetAccountBalance func(common.Address) (*big.Int, error) GetAccountBalance func(common.Address) (*big.Int, error)
CreateTransactionForPlayMethod func(string, int) error CreateTransactionForPlayMethod func(string, int) error
CreateTransactionForPayoutMethod func(string, int, int, string) error CreateTransactionForPayoutMethod func(string, int, string) error
} }
// New returns new client support service. // New returns new client support service.
@ -46,7 +46,7 @@ func New(
CreateTransactionForPickWinner func() error, CreateTransactionForPickWinner func() error,
CallFaucetContract func(common.Address) common.Hash, GetAccountBalance func(common.Address) (*big.Int, error), CallFaucetContract func(common.Address) common.Hash, GetAccountBalance func(common.Address) (*big.Int, error),
CreateTransactionForPlayMethod func(string, int) error, CreateTransactionForPlayMethod func(string, int) error,
CreateTransactionForPayoutMethod func(string, int, int, string) error) *Service { CreateTransactionForPayoutMethod func(string, int, string) error) *Service {
return &Service{ return &Service{
CreateTransactionForEnterMethod: CreateTransactionForEnterMethod, CreateTransactionForEnterMethod: CreateTransactionForEnterMethod,
GetResult: GetResult, GetResult: GetResult,

Loading…
Cancel
Save