Skip to content

Commit

Permalink
feat: rely on hard-coded keys
Browse files Browse the repository at this point in the history
  • Loading branch information
turadg committed Mar 27, 2024
1 parent 0f7b3a2 commit c5b3dba
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 11 deletions.
8 changes: 0 additions & 8 deletions contract/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -95,14 +95,6 @@ vote:
instance-q:
agd query vstorage data published.agoricNames.instance -o json

print-key: /root/.agoric/user1.key
@echo Import the following mnemonic into Keplr:
@cat $<
@echo
@echo -n 'The resulting address should be: '
@agd keys show user1 -a --keyring-backend="test"
@echo

SCRIPT=start-offer-up.js
PERMIT=start-offer-up-permit.json
start-contract: $(SCRIPT) $(PERMIT) install-bundles
Expand Down
2 changes: 1 addition & 1 deletion contract/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"docker:bash": "docker compose exec agd bash",
"docker:make": "docker compose exec agd make -C /workspace/contract",
"make:help": "make list",
"start": "yarn docker:make clean start-contract print-key",
"start": "yarn docker:make clean start-contract",
"build": "agoric run scripts/build-contract-deployer.js",
"test": "ava --verbose",
"lint": "eslint '**/*.js'",
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@
"docker:make": "cd contract; docker compose exec agd make -C /workspace/contract",
"make:help": "make -C contract list",
"start:contract": "cd contract && yarn start",
"print-key": "yarn docker:make print-acct",
"start:ui": "cd ui && yarn dev",
"lint": "yarn workspaces run lint",
"test": "yarn workspaces run test",
Expand Down
2 changes: 1 addition & 1 deletion ui/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ function App() {
switch (err.message) {
case 'KEPLR_CONNECTION_ERROR_NO_SMART_WALLET':
alert(

Check failure on line 120 in ui/src/App.tsx

View workflow job for this annotation

GitHub Actions / unit

Replace `⏎············'no·smart·wallet·at·that·address',⏎··········` with `'no·smart·wallet·at·that·address'`
'no smart wallet at that address; try: yarn docker:make print-key',
'no smart wallet at that address',
);
break;
default:
Expand Down

0 comments on commit c5b3dba

Please sign in to comment.