Add voucherdata call to test accountservices

This commit is contained in:
lash
2024-11-04 02:23:30 +00:00
parent 7189235bee
commit 2c30ccc405
3 changed files with 47 additions and 1 deletions

View File

@@ -38,3 +38,8 @@ func (m *MockAccountService) FetchTransactions(ctx context.Context, publicKey st
args := m.Called(publicKey)
return args.Get(0).([]dataserviceapi.Last10TxResponse), args.Error(1)
}
func(m MockAccountService) VoucherData(ctx context.Context, address string) (*models.VoucherDataResult, error) {
args := m.Called(address)
return args.Get(0).(*models.VoucherDataResult), args.Error(1)
}