Skip to content

Commit

Permalink
default acc creator gas updated (#119)
Browse files Browse the repository at this point in the history
  • Loading branch information
volovyks authored Apr 25, 2023
1 parent 651a52f commit 5d0d59a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions mpc-recovery/src/leader_node/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ pub async fn run(config: Config) {

let client = NearRpcAndRelayerClient::connect(&near_rpc, relayer_url);
// FIXME: We don't have a token for ourselves, but are still forced to allocate allowance.
// Using randomly generated tokens ensures the uniqueness of tokens on the relayer side.
// Using randomly generated tokens ensures the uniqueness of tokens on the relayer side so
// we can update the allowance on each server run.
let fake_oauth_token: String = rand::thread_rng()
.sample_iter(&Alphanumeric)
.take(16)
Expand All @@ -58,7 +59,7 @@ pub async fn run(config: Config) {
client
.register_account(RegisterAccountRequest {
account_id: account_creator_id.clone(),
allowance: 300_000_000_000_000,
allowance: 18_000_000_000_000_000_000, // should be enough to create 700_000+ accs
oauth_token: fake_oauth_token,
})
.await
Expand Down

0 comments on commit 5d0d59a

Please sign in to comment.