We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 290a1e1 commit f7adea9Copy full SHA for f7adea9
src/modules/txns/txns.ts
@@ -25,16 +25,17 @@ export default class Txns extends BaseModule {
25
this.configs = merge({
26
wait: true,
27
}, configs);
28
-
29
- this.algod = new algosdk.Algodv2(
30
- options.apiToken || '',
31
- options.apiUrl,
32
- options.apiPort || ''
33
- );
34
}
35
36
public init(stack: AlgoStack) {
37
super.init(stack);
+
+ this.algod = new algosdk.Algodv2(
+ this.stack.configs.apiToken || '',
+ this.stack.configs.apiUrl,
+ this.stack.configs.apiPort || ''
+ );
38
39
this.client = stack.client;
40
if (!this.client) throw('Client module is required');
41
return this;
0 commit comments