Skip to content

Commit

Permalink
fix: smaller amount
Browse files Browse the repository at this point in the history
  • Loading branch information
notanatol committed Mar 11, 2024
1 parent 41dc0c9 commit d6fbaa3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/bee/debugapi/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ func (n *NodeService) Wallet(ctx context.Context) (resp Wallet, err error) {

// Withdraw calls wallet withdraw endpoint
func (n *NodeService) Withdraw(ctx context.Context, token, addr string) (tx common.Hash, err error) {
endpoint := fmt.Sprintf("/wallet/withdraw/%s?address=%s&amount=10000000000000000", token, addr)
endpoint := fmt.Sprintf("/wallet/withdraw/%s?address=%s&amount=1000000", token, addr)

r := struct {
TransactionHash common.Hash `json:"transactionHash"`
Expand Down
2 changes: 1 addition & 1 deletion pkg/test/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ func (b *BeeV2) Withdraw(ctx context.Context, token, addr string) error {
return fmt.Errorf("(%s) wallet balance %w", b.name, err)
}

want := big.NewInt(0).Sub(before, big.NewInt(10000000000000000))
want := big.NewInt(0).Sub(before, big.NewInt(1000000))

if after.Cmp(want) > 0 {
return fmt.Errorf("incorrect balance after withdraw:\ngot %d\nwant %d", after, want)
Expand Down

0 comments on commit d6fbaa3

Please sign in to comment.