Skip to content

Commit

Permalink
set_balance is now force_set_balance
Browse files Browse the repository at this point in the history
  • Loading branch information
neutrinoks committed Nov 3, 2023
1 parent 2d7de35 commit 3105b35
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion tests/delegator_issue_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ def wait_get_reward(self, addr):
return False

def batch_fund(self, batch, kp, amount):
batch.compose_sudo_call('Balances', 'set_balance', {
batch.compose_sudo_call('Balances', 'force_set_balance', {
'who': kp.ss58_address,
'new_free': amount,
'new_reserved': 0
Expand Down
2 changes: 1 addition & 1 deletion tests/pallet_treasury_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ def treasury_rewards_test(self):
print('✅ Reward distributed to treasury as expected')

def batch_fund(self, batch, kp, amount):
batch.compose_sudo_call('Balances', 'set_balance', {
batch.compose_sudo_call('Balances', 'force_set_balance', {
'who': kp.ss58_address,
'new_free': amount,
'new_reserved': 0
Expand Down
2 changes: 1 addition & 1 deletion tests/zenlink_dex_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def compose_balances_setbalance(batch, who, amount):
'new_free': str(amount),
'new_reserved': '0',
}
batch.compose_sudo_call('Balances', 'set_balance', params)
batch.compose_sudo_call('Balances', 'force_set_balance', params)


# Composes a XCM Reserve-Transfer-Asset call to transfer DOT-tokens
Expand Down
4 changes: 2 additions & 2 deletions tools/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ def calculate_evm_addr(addr):
def fund(substrate, kp_dst, token_num):
return substrate.compose_call(
call_module='Balances',
call_function='set_balance',
call_function='force_set_balance',
call_params={
'who': kp_dst.ss58_address,
'new_free': token_num * TOKEN_NUM_BASE,
Expand All @@ -356,7 +356,7 @@ def funds(substrate, dsts, token_num):
payloads = [
substrate.compose_call(
call_module='Balances',
call_function='set_balance',
call_function='force_set_balance',
call_params={
'who': dst,
'new_free': token_num,
Expand Down

0 comments on commit 3105b35

Please sign in to comment.