Skip to content

Commit

Permalink
Small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
DOBEN committed Nov 18, 2024
1 parent 9704fde commit b92d804
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 7 deletions.
8 changes: 6 additions & 2 deletions compliant-reward-distribution/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,14 @@ However, the easiest option is to use [docker-compose](https://docs.docker.com/c

For this to work, you should do the following:

1. Set the following environment variables:
1. Initialize local dependencies:
```
git submodule update --init --recursive
```
2. Set the following environment variables:
- (Optional) Set the `ADMIN_ACCOUNT` variable to an account address. This account can read and write to the database.
- (Optional) Set the `CONCORDIUM_NODE` to the gRPC endpoint of the node you want to use. Defaults to `https://grpc.testnet.concordium.com:20000`.
2. Run `docker-compose up` to build and start all the services.
3. Run `docker-compose up` to build and start all the services.

e.g.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,9 @@ export function AdminGetAccountData(props: Props) {
</Button>

<br />
{accountData && <pre className="pre">{JSONbig.stringify(accountData, undefined, 2)}</pre>}
{accountData && (
<pre className="pre text-white">{JSONbig.stringify(accountData, undefined, 2)}</pre>
)}

{error && <Alert variant="danger">{error}</Alert>}
</Form>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,9 @@ export function AdminGetPendingApprovals(props: Props) {

{error && <Alert variant="danger">{error}</Alert>}

{pendingApprovals && <pre className="pre">{JSONbig.stringify(pendingApprovals, undefined, 2)}</pre>}
{pendingApprovals && (
<pre className="pre text-white">{JSONbig.stringify(pendingApprovals, undefined, 2)}</pre>
)}
</Form>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ const Proof = () => {
{validProof ? (
<Button
onClick={() => {
navigate('/submission');
navigate('/finalPage');
}}
variant="light"
className="px-5 py-3 rounded-pill bg-white text-black fw-semibold"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,7 @@ export class BrowserWalletProvider extends WalletProvider {
}

private async setConnectedGenesisHash() {
const hash = await this.provider.getSelectedChain();
connectedGenesisHash = hash;
connectedGenesisHash = await this.provider.getSelectedChain();
}

async getConnectedGenesisHash() {
Expand Down

0 comments on commit b92d804

Please sign in to comment.