Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: wallet withdraw test #386

Merged
merged 13 commits into from
Mar 15, 2024
Merged

feat: wallet withdraw test #386

merged 13 commits into from
Mar 15, 2024

Conversation

notanatol
Copy link
Contributor

No description provided.

@notanatol notanatol self-assigned this Mar 8, 2024

c.logger.Info("withdrawing native...")

if err := target.Withdraw(ctx, "NativeToken", o.TargetAddr); err != nil {
Copy link
Member

@istae istae Mar 13, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the balance before and after the withdrawal should be compared

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's being tested inside the function, this way I can use the same method for different coin/addresses:

https://github.com/ethersphere/beekeeper/pull/386/files#diff-26ffebd2abeeaff0e1d88eab9a47503856f31fcfc6fd6704b431ea5c4b72727cR125

pkg/bee/client.go Outdated Show resolved Hide resolved
pkg/bee/debugapi/node.go Outdated Show resolved Hide resolved
@notanatol notanatol merged commit 518ab8a into master Mar 15, 2024
3 checks passed
@notanatol notanatol deleted the feat-withd-addr branch March 15, 2024 00:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants