Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Cifko committed Feb 6, 2024
1 parent a4a4f6c commit 535551e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bindings/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
# SPDX-License-Identifier: BSD-3-Clause

cargo test --workspace --exclude integration_tests export_bindings --features ts
shx mv ../dan_layer/bindings/src/types/* ./src/types/
shx rm -rf ../dan_layer/bindings/
npx shx mv ../dan_layer/bindings/src/types/* ./src/types/
npx shx rm -rf ../dan_layer/bindings/
DIRECTORY_PATH="./src/types" # replace with your directory path
HELPERS_PATH="./src/helpers" # replace with your directory path
INDEX_FILE="./index.ts"

# Remove the index file if it exists
if [ -f "$INDEX_FILE" ]; then
rm "$INDEX_FILE"
npx shx rm "$INDEX_FILE"
fi

# Add the license header
Expand Down
1 change: 1 addition & 0 deletions bindings/src/types/Block.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import type { QuorumCertificate } from "./QuorumCertificate";

export interface Block {
id: string;
network: string;
parent: string;
justify: QuorumCertificate;
height: NodeHeight;
Expand Down

0 comments on commit 535551e

Please sign in to comment.