Incorrectly identical keys using account-creating functions
During create account with function create_account
, all keys of created account are the same. This is inconsistent behavior compared to mainnet network.
@run_for("testnet")
def test_same_account_keys(node):
wallet = tt.Wallet(attach_to=node)
wallet.create_account("alice")
owner = node.api.wallet_bridge.get_accounts(["alice"])[0]["owner"]["key_auths"][0][0]
active = node.api.wallet_bridge.get_accounts(["alice"])[0]["active"]["key_auths"][0][0]
posting = node.api.wallet_bridge.get_accounts(["alice"])[0]["posting"]["key_auths"][0][0]
memo = node.api.wallet_bridge.get_accounts(["alice"])[0]["memo_key"]
keys = [owner, active, posting, memo]
assert len(set(keys)) == 4, "The keys are not different"
{
'owner': 'TST5P8syqoj7itoDjbtDvCMCb5W3BNJtUjws9v7TDNZKqBLmp3pQW',
'active': 'TST5P8syqoj7itoDjbtDvCMCb5W3BNJtUjws9v7TDNZKqBLmp3pQW',
'posting': 'TST5P8syqoj7itoDjbtDvCMCb5W3BNJtUjws9v7TDNZKqBLmp3pQW',
'memo': 'TST5P8syqoj7itoDjbtDvCMCb5W3BNJtUjws9v7TDNZKqBLmp3pQW',
}
The same situation occurs when using functions wallet.api.create_accounts()
Edited by Michał Kudela