diff --git a/pkg/bee/debugapi/node.go b/pkg/bee/debugapi/node.go index 2a49b4da1..4b547fca6 100644 --- a/pkg/bee/debugapi/node.go +++ b/pkg/bee/debugapi/node.go @@ -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"` diff --git a/pkg/test/node.go b/pkg/test/node.go index f8e699ad7..dc3913ffc 100644 --- a/pkg/test/node.go +++ b/pkg/test/node.go @@ -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)