refactor: debug api chequebook - withdraw and deposit methods

This commit is contained in:
Vojtech Simetka
2021-04-02 11:23:13 +02:00
parent d9941038df
commit 456a18b9b6
3 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -94,10 +94,10 @@ export const beeDebugApi = {
return beeJSDebugClient().getLastChequesForPeer(peerId)
},
withdraw(amount: bigint) {
return beeDebugApiClient().post(`/chequebook/withdraw?amount=${amount}`)
return beeJSDebugClient().withdrawTokens(amount)
},
deposit(amount: bigint) {
return beeDebugApiClient().post(`/chequebook/deposit?amount=${amount}`)
return beeJSDebugClient().depositTokens(amount)
},
},
settlements: {