decentralcardgame-cardchain-client-ts 0.0.21 → 0.0.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/client.js +2 -2
- package/client.ts +2 -2
- package/package.json +1 -1
package/client.js
CHANGED
|
@@ -22,7 +22,7 @@ export class IgniteClient extends EventEmitter {
|
|
|
22
22
|
if (this.signer) {
|
|
23
23
|
const { address } = (await this.signer.getAccounts())[0];
|
|
24
24
|
const signingClient = await SigningStargateClient.connectWithSigner(this.env.rpcURL, this.signer, {
|
|
25
|
-
aminoTypes:
|
|
25
|
+
aminoTypes: this.aminoTypes,
|
|
26
26
|
registry: new Registry(this.registry),
|
|
27
27
|
prefix: this.env.prefix
|
|
28
28
|
});
|
|
@@ -38,7 +38,7 @@ export class IgniteClient extends EventEmitter {
|
|
|
38
38
|
this.env = env;
|
|
39
39
|
this.setMaxListeners(0);
|
|
40
40
|
this.signer = signer;
|
|
41
|
-
this.aminoTypes = new AminoTypes({
|
|
41
|
+
this.aminoTypes = new AminoTypes({ additions: createDecentralCardgameAminoConverters(), prefix: "cc" });
|
|
42
42
|
const classConstructor = this.constructor;
|
|
43
43
|
classConstructor.plugins.forEach(plugin => {
|
|
44
44
|
const pluginInstance = plugin(this);
|
package/client.ts
CHANGED
|
@@ -48,7 +48,7 @@ export class IgniteClient extends EventEmitter {
|
|
|
48
48
|
if (this.signer) {
|
|
49
49
|
const {address} = (await this.signer.getAccounts())[0];
|
|
50
50
|
const signingClient = await SigningStargateClient.connectWithSigner(this.env.rpcURL, this.signer, {
|
|
51
|
-
aminoTypes:
|
|
51
|
+
aminoTypes: this.aminoTypes,
|
|
52
52
|
registry: new Registry(this.registry),
|
|
53
53
|
prefix: this.env.prefix
|
|
54
54
|
});
|
|
@@ -63,7 +63,7 @@ export class IgniteClient extends EventEmitter {
|
|
|
63
63
|
this.env = env;
|
|
64
64
|
this.setMaxListeners(0);
|
|
65
65
|
this.signer = signer;
|
|
66
|
-
this.aminoTypes = new AminoTypes({
|
|
66
|
+
this.aminoTypes = new AminoTypes({additions: createDecentralCardgameAminoConverters(), prefix:"cc"})
|
|
67
67
|
const classConstructor = this.constructor as typeof IgniteClient;
|
|
68
68
|
classConstructor.plugins.forEach(plugin => {
|
|
69
69
|
const pluginInstance = plugin(this);
|
package/package.json
CHANGED