mirror of
https://github.com/aljazceru/cdk.git
synced 2025-12-20 14:14:49 +01:00
fix: sqlx sqlite settings
feat: use transactions in all sql fns
This commit is contained in:
@@ -37,7 +37,7 @@ async fn new_mint(fee: u64) -> Mint {
|
|||||||
|
|
||||||
let mnemonic = Mnemonic::generate(12).unwrap();
|
let mnemonic = Mnemonic::generate(12).unwrap();
|
||||||
|
|
||||||
let mint = Mint::new(
|
Mint::new(
|
||||||
MINT_URL,
|
MINT_URL,
|
||||||
&mnemonic.to_seed_normalized(""),
|
&mnemonic.to_seed_normalized(""),
|
||||||
mint_info,
|
mint_info,
|
||||||
@@ -45,9 +45,7 @@ async fn new_mint(fee: u64) -> Mint {
|
|||||||
supported_units,
|
supported_units,
|
||||||
)
|
)
|
||||||
.await
|
.await
|
||||||
.unwrap();
|
.unwrap()
|
||||||
|
|
||||||
mint
|
|
||||||
}
|
}
|
||||||
|
|
||||||
async fn initialize() -> &'static Mint {
|
async fn initialize() -> &'static Mint {
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user