Skip to content

Commit c39d7a7

Browse files
authored
Merge pull request #55 from helium/bugfix/amount
Removing funding amount requirement, transfer happens in init
2 parents 82bcaaa + 2d2f047 commit c39d7a7

File tree

3 files changed

+2
-13
lines changed

3 files changed

+2
-13
lines changed

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tuktuk-cli/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "tuktuk-cli"
3-
version = "0.2.8"
3+
version = "0.2.9"
44
description = "A cli for tuktuk"
55
homepage.workspace = true
66
repository.workspace = true

tuktuk-cli/src/cmd/task_queue.rs

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -171,17 +171,6 @@ impl TaskQueueCmd {
171171
update_authority.unwrap_or(client.payer.pubkey()),
172172
)?;
173173
// Fund if amount specified
174-
let config: TuktukConfigV0 = client
175-
.as_ref()
176-
.anchor_account(&tuktuk::config_key())
177-
.await?
178-
.ok_or_else(|| anyhow::anyhow!("Tuktuk config account not found"))?;
179-
if *funding_amount < config.min_deposit {
180-
return Err(anyhow::anyhow!(
181-
"Funding amount must be greater than the minimum deposit: {}",
182-
config.min_deposit
183-
));
184-
}
185174
let fund_ix = Self::fund_task_queue_ix(&client, &key, *funding_amount).await?;
186175

187176
send_instructions(

0 commit comments

Comments
 (0)