-
-
Notifications
You must be signed in to change notification settings - Fork 141
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4c3b0cb
commit 9610083
Showing
2 changed files
with
14 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,7 +12,7 @@ import { | |
assertEquals, | ||
} from "https://deno.land/[email protected]/testing/asserts.ts"; | ||
|
||
async function generateAccount(assets: Assets) { | ||
function generateAccount(assets: Assets) { | ||
const seedPhrase = Crypto.generateSeed(); | ||
const { credential } = Crypto.seedToDetails(seedPhrase, 0, "Payment"); | ||
const address = Addresses.credentialToAddress({ Emulator: 0 }, credential); | ||
|
@@ -23,8 +23,8 @@ async function generateAccount(assets: Assets) { | |
}; | ||
} | ||
|
||
const ACCOUNT_0 = await generateAccount({ lovelace: 75000000000n }); | ||
const ACCOUNT_1 = await generateAccount({ lovelace: 100000000n }); | ||
const ACCOUNT_0 = generateAccount({ lovelace: 75000000000n }); | ||
const ACCOUNT_1 = generateAccount({ lovelace: 100000000n }); | ||
|
||
const emulator = new Emulator([ACCOUNT_0, ACCOUNT_1]); | ||
|
||
|