This commit is contained in:
ntr 2019-02-25 15:29:04 +11:00
parent 7ab27d51d2
commit 556366bf8f

View File

@ -196,14 +196,14 @@ impl Rpc {
let name: String = iter::repeat(()).map(|()| rng.sample(Alphanumeric)).take(8).collect();
let cryp = cryp_spawn(CrypSpawnParams { name }, tx, &account)?;
let player = Player::new(account.id, Uuid::nil(), vec![]);
player_create(tx, &player, &account)?;
let res = RpcResponse {
method: "account_create".to_string(),
params: RpcResult::Account(account),
};
let player = Player::new(account.id, Uuid::nil(), vec![]);
player_create(tx, &player, &account)?;
return Ok(res);
}