import (
"context"
- "github.com/bytom/blockchain/txbuilder"
+ "github.com/bytom/bytom/blockchain/txbuilder"
)
func (a *API) createAccountReceiver(ctx context.Context, ins struct {
}) Response {
accountID := ins.AccountID
if ins.AccountAlias != "" {
- account, err := a.wallet.AccountMgr.FindByAlias(ctx, ins.AccountAlias)
+ account, err := a.wallet.AccountMgr.FindByAlias(ins.AccountAlias)
if err != nil {
return NewErrorResponse(err)
}
accountID = account.ID
}
- program, err := a.wallet.AccountMgr.CreateAddress(ctx, accountID, false)
+ program, err := a.wallet.AccountMgr.CreateAddress(accountID, false)
if err != nil {
return NewErrorResponse(err)
}