diff --git a/initialize.sh b/initialize.sh index 87f4b81..a84754b 100755 --- a/initialize.sh +++ b/initialize.sh @@ -39,15 +39,11 @@ esac --network-passphrase "$SOROBAN_NETWORK_PASSPHRASE" #fi -TOKEN_ADMIN_SECRET="SAKCFFFNCE7XAWYMYVRZQYKUK6KMUCDIINLWISJYTMYJLNR2QLCDLFVT" if !(soroban config identity ls | grep token-admin 2>&1 >/dev/null); then echo Create the token-admin identity - # TODO: Use `soroban config identity generate` once that supports secret key - # output. - # See: https://github.com/stellar/soroban-example-dapp/issues/88 - mkdir -p ".soroban/identities" - echo "secret_key = \"$TOKEN_ADMIN_SECRET\"" > ".soroban/identities/token-admin.toml" + soroban config identity generate token-admin fi +TOKEN_ADMIN_SECRET="$(soroban config identity show token-admin)" TOKEN_ADMIN_ADDRESS="$(soroban config identity address token-admin)" # TODO: Remove this once we can use `soroban config identity` from webpack. diff --git a/package-lock.json b/package-lock.json index 1098c57..59d545e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10,7 +10,7 @@ "dependencies": { "@radix-ui/react-dialog": "1.0.2", "@soroban-react/chains": "4.1.0", - "@soroban-react/contracts": "4.1.0", + "@soroban-react/contracts": "^4.1.1", "@soroban-react/core": "4.1.0", "@soroban-react/freighter": "4.0.0", "@soroban-react/types": "4.0.0", @@ -559,9 +559,9 @@ } }, "node_modules/@soroban-react/contracts": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/@soroban-react/contracts/-/contracts-4.1.0.tgz", - "integrity": "sha512-vnhmZbSXPmAtXg2XUmhR46oFYOBMnuyeJgxssfyKAl3Ud3nEwu/3KbSmfMqlIOZh3YZn+T8rB4BXZCeMB9P3dQ==", + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/@soroban-react/contracts/-/contracts-4.1.1.tgz", + "integrity": "sha512-i7mRMjoF8AGInbWrX8iQ00ygOOyicrZO+t5BVQMEGUAWVCItOlpLiXfXfTHYiY9riXxq5tol3iAI981wVXdFXw==", "dependencies": { "@soroban-react/core": "^4.1.0", "soroban-client": "^0.5.0" @@ -4072,9 +4072,9 @@ } }, "@soroban-react/contracts": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/@soroban-react/contracts/-/contracts-4.1.0.tgz", - "integrity": "sha512-vnhmZbSXPmAtXg2XUmhR46oFYOBMnuyeJgxssfyKAl3Ud3nEwu/3KbSmfMqlIOZh3YZn+T8rB4BXZCeMB9P3dQ==", + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/@soroban-react/contracts/-/contracts-4.1.1.tgz", + "integrity": "sha512-i7mRMjoF8AGInbWrX8iQ00ygOOyicrZO+t5BVQMEGUAWVCItOlpLiXfXfTHYiY9riXxq5tol3iAI981wVXdFXw==", "requires": { "@soroban-react/core": "^4.1.0", "soroban-client": "^0.5.0" diff --git a/package.json b/package.json index 90c2df7..9070f7d 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,7 @@ "dependencies": { "@radix-ui/react-dialog": "1.0.2", "@soroban-react/chains": "4.1.0", - "@soroban-react/contracts": "4.1.0", + "@soroban-react/contracts": "^4.1.1", "@soroban-react/core": "4.1.0", "@soroban-react/freighter": "4.0.0", "@soroban-react/types": "4.0.0", diff --git a/quickstart.sh b/quickstart.sh index 211e1b8..24a8821 100755 --- a/quickstart.sh +++ b/quickstart.sh @@ -52,7 +52,7 @@ docker run --rm -ti \ --name stellar \ --network soroban-network \ -p 8000:8000 \ - stellar/quickstart:soroban-dev@sha256:81c23da078c90d0ba220f8fc93414d0ea44608adc616988930529c58df278739 \ + stellar/quickstart:soroban-dev@sha256:3d14a36df8e7d3da899369f00231125d81745ab457076082d22eabc35c6de78e \ $ARGS \ --enable-soroban-rpc \ --protocol-version 20 \