File tree Expand file tree Collapse file tree 2 files changed +18
-6
lines changed Expand file tree Collapse file tree 2 files changed +18
-6
lines changed Original file line number Diff line number Diff line change @@ -4,5 +4,5 @@ We welcome contributions to the FireFly Project in many forms, and
4
4
there's always plenty to do!
5
5
6
6
Please visit the
7
- [ contributors guide] ( https://hyperledger.github.io/firefly/contributors/contributors .html ) in the
7
+ [ contributors guide] ( https://hyperledger.github.io/firefly/contributors/index .html ) in the
8
8
docs to learn how to make contributions to this exciting project.
Original file line number Diff line number Diff line change @@ -18,12 +18,24 @@ npm install @hyperledger/firefly-sdk
18
18
``` typescript
19
19
import FireFly from ' @hyperledger/firefly-sdk' ;
20
20
21
- const firefly = new FireFly ({ host: ' http://localhost:5000' });
22
- await firefly .sendBroadcast ({
23
- data: [{ value: ' test-message' }],
24
- });
21
+ async function main() {
22
+ const firefly = new FireFly ({ host: ' http://localhost:5000' });
23
+ await firefly .sendBroadcast ({
24
+ data: [
25
+ {
26
+ value: ' test-message' ,
27
+ },
28
+ ],
29
+ });
30
+ }
31
+
32
+ if (require .main === module ) {
33
+ main ().catch ((err ) => console .error (` Error: ${err } ` ));
34
+ }
25
35
```
26
36
37
+ (This example was taken from the [ examples] ( examples ) folder where you will find some other basic samples)
38
+
27
39
## Generated schemas
28
40
29
41
The types for FireFly requests and responses are generated from the OpenAPI schema for FireFly. If you have
@@ -47,7 +59,7 @@ that may be helpful to reference:
47
59
48
60
Interested in contributing to the community?
49
61
50
- Check out our [ Contributor Guide] ( https://hyperledger.github.io/firefly/contributors/contributors .html ) , and welcome!
62
+ Check out our [ Contributor Guide] ( https://hyperledger.github.io/firefly/contributors/index .html ) , and welcome!
51
63
52
64
Please adhere to this project's [ Code of Conduct] ( CODE_OF_CONDUCT.md ) .
53
65
You can’t perform that action at this time.
0 commit comments