@cityofzion/bs-ethereum 2.8.2 → 2.8.3
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/BSEthereum.js
CHANGED
|
@@ -152,6 +152,7 @@ class BSEthereum {
|
|
|
152
152
|
return __awaiter(this, void 0, void 0, function* () {
|
|
153
153
|
const signer = yield __classPrivateFieldGet(this, _BSEthereum_instances, "m", _BSEthereum_generateSigner).call(this, param.senderAccount);
|
|
154
154
|
const sentTransactionHashes = [];
|
|
155
|
+
let error;
|
|
155
156
|
for (const intent of param.intents) {
|
|
156
157
|
let transactionHash = '';
|
|
157
158
|
try {
|
|
@@ -166,11 +167,14 @@ class BSEthereum {
|
|
|
166
167
|
const transaction = yield signer.sendTransaction(Object.assign(Object.assign({}, transactionParams), { gasLimit, maxPriorityFeePerGas: gasPrice, maxFeePerGas: gasPrice }));
|
|
167
168
|
transactionHash = transaction.hash;
|
|
168
169
|
}
|
|
169
|
-
catch (
|
|
170
|
-
|
|
170
|
+
catch (err) {
|
|
171
|
+
error = err;
|
|
171
172
|
}
|
|
172
173
|
sentTransactionHashes.push(transactionHash);
|
|
173
174
|
}
|
|
175
|
+
if (error && sentTransactionHashes.every(hash => !hash)) {
|
|
176
|
+
throw error;
|
|
177
|
+
}
|
|
174
178
|
return sentTransactionHashes;
|
|
175
179
|
});
|
|
176
180
|
}
|
|
@@ -100,5 +100,9 @@ _GhostMarketNDSEthereum_network = new WeakMap();
|
|
|
100
100
|
GhostMarketNDSEthereum.BASE_URL = 'https://api.ghostmarket.io/api/v2';
|
|
101
101
|
GhostMarketNDSEthereum.CONFIG_BY_NETWORK_ID = {
|
|
102
102
|
'1': 'eth',
|
|
103
|
+
'56': 'bsc',
|
|
104
|
+
'137': 'polygon',
|
|
105
|
+
'43114': 'avalanche',
|
|
106
|
+
'8453': 'base',
|
|
103
107
|
[BSEthereumConstants_1.BSEthereumConstants.NEOX_MAINNET_NETWORK_ID]: 'neox',
|
|
104
108
|
};
|