Skip to content

Commit a6b412d

Browse files
committed
changed swap to withdraw
1 parent f45be14 commit a6b412d

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ swap_params = {
9494
"shouldSaveAddress": True
9595
}
9696

97-
swap_result = manager.swap_between_chains(swap_params)
97+
swap_result = manager.withdraw(swap_params)
9898
print(swap_result)
9999

100100
```
@@ -116,6 +116,7 @@ print(deposit_result)
116116

117117
NOTE: to get bank codes please use the getBanks method to fetch the list of banks and ther codes
118118

119+
119120
#### Create Virtual Account
120121

121122
```python

cngn_manager/main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,8 @@ def get_balance(self) -> str:
9494
def get_transaction_history(self) -> str:
9595
return self.__make_calls("GET", "/transactions")
9696

97-
def swap_between_chains(self, data: dict) -> str:
98-
return self.__make_calls("POST", "/swap", data)
97+
def withdraw(self, data: dict) -> str:
98+
return self.__make_calls("POST", "/withdraw", data)
9999

100100
def redeem_assets(self, data: dict) -> str:
101101
return self.__make_calls("POST", "/redeemAsset", data)

0 commit comments

Comments
 (0)