@skalenetwork/skale-contracts-ethers-v5 1.0.1-develop.0 → 1.0.1-develop.1
Sign up to get free protection for your applications and to get access to all the features.
package/lib/ethers5Adapter.js
CHANGED
@@ -10,7 +10,8 @@ class Ethers5Adapter {
|
|
10
10
|
return new ethers_1.ethers.Contract(address, new ethers_1.ethers.utils.Interface(abi), this.provider);
|
11
11
|
}
|
12
12
|
async makeCall(contract, targetFunction) {
|
13
|
-
const contractInterface = new ethers_1.ethers.utils.Interface(contract.abi)
|
13
|
+
const contractInterface = new ethers_1.ethers.utils.Interface(contract.abi);
|
14
|
+
const [result] = contractInterface.decodeFunctionResult(targetFunction.functionName, await this.provider.call({
|
14
15
|
"data": contractInterface.encodeFunctionData(targetFunction.functionName, targetFunction.args),
|
15
16
|
"to": contract.address
|
16
17
|
}));
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ethers5Adapter.js","sourceRoot":"","sources":["../src/ethers5Adapter.ts"],"names":[],"mappings":";;;AAMA,mCAA8C;AAI9C,MAAa,cAAc;IAGvB,YAAa,QAAkB;QAC3B,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;IAC7B,CAAC;IAED,cAAc,CAAE,OAAe,EAAE,GAAQ;QACrC,OAAO,IAAI,eAAM,CAAC,QAAQ,CACtB,OAAO,EACP,IAAI,eAAM,CAAC,KAAK,CAAC,SAAS,CAAC,GAAG,CAAC,EAC/B,IAAI,CAAC,QAAQ,CACA,CAAC;IACtB,CAAC;IAED,KAAK,CAAC,QAAQ,CACV,QAAsB,EACtB,cAA4B;QAE5B,
|
1
|
+
{"version":3,"file":"ethers5Adapter.js","sourceRoot":"","sources":["../src/ethers5Adapter.ts"],"names":[],"mappings":";;;AAMA,mCAA8C;AAI9C,MAAa,cAAc;IAGvB,YAAa,QAAkB;QAC3B,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;IAC7B,CAAC;IAED,cAAc,CAAE,OAAe,EAAE,GAAQ;QACrC,OAAO,IAAI,eAAM,CAAC,QAAQ,CACtB,OAAO,EACP,IAAI,eAAM,CAAC,KAAK,CAAC,SAAS,CAAC,GAAG,CAAC,EAC/B,IAAI,CAAC,QAAQ,CACA,CAAC;IACtB,CAAC;IAED,KAAK,CAAC,QAAQ,CACV,QAAsB,EACtB,cAA4B;QAE5B,MAAM,iBAAiB,GAAG,IAAI,eAAM,CAAC,KAAK,CAAC,SAAS,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC;QACnE,MAAM,CAAC,MAAM,CAAC,GAAG,iBAAiB,CAAC,oBAAoB,CACnD,cAAc,CAAC,YAAY,EAC3B,MAAM,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC;YACrB,MAAM,EAAE,iBAAiB,CAAC,kBAAkB,CACxC,cAAc,CAAC,YAAY,EAC3B,cAAc,CAAC,IAAI,CACtB;YACD,IAAI,EAAE,QAAQ,CAAC,OAAO;SACzB,CAAC,CACL,CAAC;QACF,OAAO,MAAM,CAAC;IAClB,CAAC;IAED,KAAK,CAAC,UAAU;QACZ,MAAM,EAAE,OAAO,EAAE,GAAG,MAAM,IAAI,CAAC,QAAQ,CAAC,UAAU,EAAE,CAAC;QACrD,OAAO,MAAM,CAAC,OAAO,CAAC,CAAC;IAC3B,CAAC;IAED,kDAAkD;IAClD,SAAS,CAAE,KAAa;QACpB,OAAO,eAAM,CAAC,KAAK,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;IACzC,CAAC;CACJ;AA1CD,wCA0CC"}
|
package/package.json
CHANGED
@@ -23,8 +23,8 @@
|
|
23
23
|
},
|
24
24
|
"types": "lib/index.d.ts",
|
25
25
|
"dependencies": {
|
26
|
-
"@skalenetwork/skale-contracts": "1.0.1-develop.
|
26
|
+
"@skalenetwork/skale-contracts": "1.0.1-develop.1",
|
27
27
|
"ethers": "^5.7.2"
|
28
28
|
},
|
29
|
-
"version": "1.0.1-develop.
|
29
|
+
"version": "1.0.1-develop.1"
|
30
30
|
}
|