@fystack/sdk 0.1.5 → 0.1.7
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/dist/index.cjs +1 -2
- package/dist/index.esm.js +1 -2
- package/dist/index.mjs +1 -2
- package/package.json +1 -1
- package/src/api.ts +1 -1
- package/src/signer.ts +0 -1
package/dist/index.cjs
CHANGED
|
@@ -183,7 +183,7 @@ exports.WalletRole = void 0;
|
|
|
183
183
|
})(exports.WalletRole || (exports.WalletRole = {}));
|
|
184
184
|
|
|
185
185
|
async function composeAPIHeaders(credentials, httpMethod, apiEndpoint, body = {}) {
|
|
186
|
-
if (credentials.apiSecret
|
|
186
|
+
if (!credentials.apiSecret || credentials.apiSecret === '') {
|
|
187
187
|
// If APISecret is not provided, use authToken
|
|
188
188
|
if (credentials.authToken) {
|
|
189
189
|
return {
|
|
@@ -736,7 +736,6 @@ class EtherSigner extends ethers.AbstractSigner {
|
|
|
736
736
|
async sendTransaction(tx) {
|
|
737
737
|
const startTime = new Date();
|
|
738
738
|
console.log(`[WalletSDK] sendTransaction started at: ${startTime.toLocaleString()}`);
|
|
739
|
-
debugger;
|
|
740
739
|
if (!this.address) {
|
|
741
740
|
await this.getAddress();
|
|
742
741
|
}
|
package/dist/index.esm.js
CHANGED
|
@@ -175,7 +175,7 @@ var WalletRole;
|
|
|
175
175
|
})(WalletRole || (WalletRole = {}));
|
|
176
176
|
|
|
177
177
|
async function composeAPIHeaders(credentials, httpMethod, apiEndpoint, body = {}) {
|
|
178
|
-
if (credentials.apiSecret
|
|
178
|
+
if (!credentials.apiSecret || credentials.apiSecret === '') {
|
|
179
179
|
// If APISecret is not provided, use authToken
|
|
180
180
|
if (credentials.authToken) {
|
|
181
181
|
return {
|
|
@@ -728,7 +728,6 @@ class EtherSigner extends AbstractSigner {
|
|
|
728
728
|
async sendTransaction(tx) {
|
|
729
729
|
const startTime = new Date();
|
|
730
730
|
console.log(`[WalletSDK] sendTransaction started at: ${startTime.toLocaleString()}`);
|
|
731
|
-
debugger;
|
|
732
731
|
if (!this.address) {
|
|
733
732
|
await this.getAddress();
|
|
734
733
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -175,7 +175,7 @@ var WalletRole;
|
|
|
175
175
|
})(WalletRole || (WalletRole = {}));
|
|
176
176
|
|
|
177
177
|
async function composeAPIHeaders(credentials, httpMethod, apiEndpoint, body = {}) {
|
|
178
|
-
if (credentials.apiSecret
|
|
178
|
+
if (!credentials.apiSecret || credentials.apiSecret === '') {
|
|
179
179
|
// If APISecret is not provided, use authToken
|
|
180
180
|
if (credentials.authToken) {
|
|
181
181
|
return {
|
|
@@ -728,7 +728,6 @@ class EtherSigner extends AbstractSigner {
|
|
|
728
728
|
async sendTransaction(tx) {
|
|
729
729
|
const startTime = new Date();
|
|
730
730
|
console.log(`[WalletSDK] sendTransaction started at: ${startTime.toLocaleString()}`);
|
|
731
|
-
debugger;
|
|
732
731
|
if (!this.address) {
|
|
733
732
|
await this.getAddress();
|
|
734
733
|
}
|
package/package.json
CHANGED
package/src/api.ts
CHANGED
|
@@ -71,7 +71,7 @@ async function composeAPIHeaders(
|
|
|
71
71
|
apiEndpoint: string,
|
|
72
72
|
body: Record<string, any> = {}
|
|
73
73
|
): Promise<Record<string, string>> {
|
|
74
|
-
if (credentials.apiSecret
|
|
74
|
+
if (!credentials.apiSecret || credentials.apiSecret === '') {
|
|
75
75
|
// If APISecret is not provided, use authToken
|
|
76
76
|
if (credentials.authToken) {
|
|
77
77
|
return {
|
package/src/signer.ts
CHANGED