add and update examples

This commit is contained in:
DieMyst
2021-07-23 11:57:44 +03:00
parent e1ad9917cb
commit 0bf0ba6d94
31 changed files with 215 additions and 137 deletions

View File

@ -3,7 +3,7 @@
* This file is auto-generated. Do not edit manually: changes may be erased.
* Generated by Aqua compiler: https://github.com/fluencelabs/aqua/.
* If you find any bugs, please write an issue on GitHub: https://github.com/fluencelabs/aqua/issues
* Aqua version: 0.1.8-SNAPSHOT
* Aqua version: 0.1.9-SNAPSHOT
*
*/
import { FluenceClient, PeerIdB58 } from '@fluencelabs/fluence';
@ -48,7 +48,7 @@ export async function print(client: FluenceClient, str: string, config?: {ttl?:
.handleTimeout(() => {
reject('Request timed out for print');
})
if(config?.ttl) {
if(config && config.ttl) {
r.withTTL(config.ttl)
}
request = r.build();
@ -130,7 +130,7 @@ h.on('callbackSrv', 'c', (args) => {return c(args[0]);});
.handleTimeout(() => {
reject('Request timed out for passFunctionAsArg');
})
if(config?.ttl) {
if(config && config.ttl) {
r.withTTL(config.ttl)
}
request = r.build();