Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

default acc creator gas updated #119

Merged
merged 1 commit into from
Apr 25, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@ -50,7 +50,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 @@ -59,7 +60,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