Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

made doc corrections to clarify adding contract to taco shop react app config #1527

Merged
merged 4 commits into from
Nov 22, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions website/docs/scaffolds/taco-shop.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ This will be fixed in the future when contract addresses will be passed via the
### Insert the Contract Address

There is a way to point the dApp to a hardcoded contract.
To do so you need to insert the address of the contract into the `/app/src/App.tsx` file. Copy the address returned from the command above and paste it into the `contractAddress` variable in the `/app/src/App.tsx` file as shown here:
To do so you need to insert the address of the contract into the `/app/src/App.tsx` file. Copy the address returned from the command above and paste it into the `contractAddress` variable in the `/app/src/App.tsx` file as shown here, replacing `getAliasAddress(config, "hello-tacos")` with the contract address:

```ts /app/src/App.tsx
function App() {
Expand All @@ -212,7 +212,6 @@ function App() {
const [rpcUrl] = useState("https://ghostnet.ecadinfra.com");
const [contractAddress] = useState(
"KT1KBBk3PXkKmGZn3K6FkktqyPRpEbzJoEPE"
getAliasAddress(config, "hello-tacos")
);
const [contractStorage, setContractStorage] = useState<Storage | undefined>(
undefined
Expand Down