@wirexapp/wpay-baas-sdk 0.1.8 → 0.1.9
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.
|
@@ -4262,7 +4262,20 @@ var BaseWalletService = class {
|
|
|
4262
4262
|
bundlerTransport: this.bundlerTransport,
|
|
4263
4263
|
paymaster: {
|
|
4264
4264
|
getPaymasterData: async (userOperation) => {
|
|
4265
|
-
const
|
|
4265
|
+
const {
|
|
4266
|
+
parameters: _parameters,
|
|
4267
|
+
stateOverride: _stateOverride,
|
|
4268
|
+
dataSuffix: _dataSuffix,
|
|
4269
|
+
paymasterContext: _paymasterContext,
|
|
4270
|
+
...cleanUserOperation
|
|
4271
|
+
} = userOperation;
|
|
4272
|
+
const sponsored = await this.kernelPaymasterClient.sponsorUserOperation({
|
|
4273
|
+
userOperation: cleanUserOperation
|
|
4274
|
+
});
|
|
4275
|
+
const requested = typeof userOperation.callGasLimit === "bigint" ? userOperation.callGasLimit : 0n;
|
|
4276
|
+
if (typeof sponsored?.callGasLimit === "bigint" && sponsored.callGasLimit < requested) {
|
|
4277
|
+
sponsored.callGasLimit = requested;
|
|
4278
|
+
}
|
|
4266
4279
|
this.logger?.debug(
|
|
4267
4280
|
`Paymaster gas: requested=${userOperation.callGasLimit ?? "n/a"} sponsored=${sponsored?.callGasLimit ?? "n/a"}`
|
|
4268
4281
|
);
|
|
@@ -5060,5 +5073,5 @@ var CryptoModule = class {
|
|
|
5060
5073
|
};
|
|
5061
5074
|
|
|
5062
5075
|
export { BaseAccountAbstractionService, BaseAccountContractService, BaseCryptoService, BaseOnboardingService, BaseWalletService, BaseYieldService, ContractRegistryService, CryptoModule, chainRegistry };
|
|
5063
|
-
//# sourceMappingURL=chunk-
|
|
5064
|
-
//# sourceMappingURL=chunk-
|
|
5076
|
+
//# sourceMappingURL=chunk-NYDDEDPQ.js.map
|
|
5077
|
+
//# sourceMappingURL=chunk-NYDDEDPQ.js.map
|