-
Notifications
You must be signed in to change notification settings - Fork 206
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: cleanup suggestions post-submission of 9970
- Loading branch information
1 parent
43345a5
commit fc55ef5
Showing
5 changed files
with
15 additions
and
31 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
This file was deleted.
Oops, something went wrong.
11 changes: 5 additions & 6 deletions
11
a3p-integration/proposals/a:vaults-auctions/saveAuctionInstance.js
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 |
---|---|---|
@@ -1,14 +1,13 @@ | ||
#!/usr/bin/env node | ||
|
||
import { writeFile } from 'fs/promises'; | ||
import { getAuctionInstance } from './agd-tools.js'; | ||
import { getInstanceBoardId } from './agd-tools.js'; | ||
|
||
const { env } = process; | ||
|
||
const oldAuctionInstance = await getAuctionInstance(); | ||
const oldAuctionInstance = await getInstanceBoardId('auctioneer'); | ||
console.log('old auction instance ', oldAuctionInstance, env.HOME); | ||
|
||
await writeFile( | ||
`${env.HOME}/.agoric/previousInstance.json`, | ||
oldAuctionInstance, | ||
); | ||
const filePath = `${env.HOME}/.agoric/tmp/auctionPreviousInstance.json`; | ||
|
||
await writeFile(filePath, oldAuctionInstance); |
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