@octaflowlabs/onchain-sdk 1.0.0-test11 → 1.0.0-test12
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.
|
@@ -4,6 +4,7 @@ import { Interface, formatUnits, parseUnits } from 'ethers';
|
|
|
4
4
|
import { getProvider } from './getProvider';
|
|
5
5
|
import { estimateGasLimitFromProvider } from './estimateGasLimitFromProvider';
|
|
6
6
|
export const buildUnsignedTransferTx = async (options) => {
|
|
7
|
+
console.log({ options });
|
|
7
8
|
const provider = getProvider(options.rpcUrl, options.chainId);
|
|
8
9
|
if (!provider)
|
|
9
10
|
throw new Error('Could not create provider with given rpcUrl and chainId');
|
|
@@ -65,6 +66,7 @@ export const buildUnsignedTransferTx = async (options) => {
|
|
|
65
66
|
: estimateGas.feeData.gasPrice
|
|
66
67
|
? estimateGas.gasLimit * estimateGas.feeData.gasPrice
|
|
67
68
|
: undefined;
|
|
69
|
+
console.log({ gasReserve: gasReserve?.toString() });
|
|
68
70
|
try {
|
|
69
71
|
await provider.call({
|
|
70
72
|
from: options.fromAddress,
|
|
@@ -7,6 +7,7 @@ const ethers_1 = require("ethers");
|
|
|
7
7
|
const getProvider_1 = require("./getProvider");
|
|
8
8
|
const estimateGasLimitFromProvider_1 = require("./estimateGasLimitFromProvider");
|
|
9
9
|
const buildUnsignedTransferTx = async (options) => {
|
|
10
|
+
console.log({ options });
|
|
10
11
|
const provider = (0, getProvider_1.getProvider)(options.rpcUrl, options.chainId);
|
|
11
12
|
if (!provider)
|
|
12
13
|
throw new Error('Could not create provider with given rpcUrl and chainId');
|
|
@@ -68,6 +69,7 @@ const buildUnsignedTransferTx = async (options) => {
|
|
|
68
69
|
: estimateGas.feeData.gasPrice
|
|
69
70
|
? estimateGas.gasLimit * estimateGas.feeData.gasPrice
|
|
70
71
|
: undefined;
|
|
72
|
+
console.log({ gasReserve: gasReserve?.toString() });
|
|
71
73
|
try {
|
|
72
74
|
await provider.call({
|
|
73
75
|
from: options.fromAddress,
|