Skip to content

Commit 10c3c7a

Browse files
committedMay 19, 2023
fix(bts): small fixes
1 parent 1d9714c commit 10c3c7a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
 

‎smartpy/bts/contracts/src/String.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def split_btp_address(base):
3535
# with sp.else_():
3636
# sp.failwith("Only one element")
3737

38-
return sp.pair(last.value, penultimate.value)
38+
return sp.pair(penultimate.value, last.value)
3939

4040

4141

‎smartpy/bts/contracts/src/bts_core.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -650,7 +650,7 @@ def transfer_fees(self, fa):
650650
self.only_bts_periphery()
651651
l = sp.local("l", sp.nat(0))
652652
sp.for item in self.data.coins_name:
653-
sp.if self.data.aggregation_fee[item] != sp.nat(0):
653+
sp.if self.data.aggregation_fee.get(item, default_value=sp.nat(0)) != sp.nat(0):
654654
self.data.charged_coins[l.value] = item
655655
self.data.charged_amounts[l.value] = self.data.aggregation_fee.get(item)
656656
del self.data.aggregation_fee[item]

0 commit comments

Comments
 (0)