@tapforce/pod-bridge-sdk 1.1.13 → 1.1.14
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.
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.PodToSourceChainActionClient = void 0;
|
|
4
4
|
const ethers_1 = require("ethers");
|
|
5
5
|
const bridge_abi_1 = require("../../libs/abi/bridge.abi");
|
|
6
|
+
const convert_certified_log_helper_1 = require("../../libs/helpers/convert-certified-log.helper");
|
|
6
7
|
class PodToSourceChainActionClient {
|
|
7
8
|
constructor(config) {
|
|
8
9
|
this.config = config;
|
|
@@ -72,7 +73,7 @@ class PodToSourceChainActionClient {
|
|
|
72
73
|
*/
|
|
73
74
|
claimNativeWithCertificate(args) {
|
|
74
75
|
// Use source chain interface which has the certificate-based claimNative function
|
|
75
|
-
const data = this.sourceChainIface.encodeFunctionData('claimNative', [args.certifiedLog]);
|
|
76
|
+
const data = this.sourceChainIface.encodeFunctionData('claimNative', [(0, convert_certified_log_helper_1.convertFFICertifiedLog)(args.certifiedLog)]);
|
|
76
77
|
return {
|
|
77
78
|
to: this.config.sourceChain.contractAddress,
|
|
78
79
|
data,
|