@octaflowlabs/onchain-sdk 1.0.0-test6 → 1.0.0-test7
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.
|
@@ -57,6 +57,7 @@ export const buildUnsignedTransferTx = async (options) => {
|
|
|
57
57
|
};
|
|
58
58
|
if (estimateGas.feeData.gasPrice)
|
|
59
59
|
unsignedTxToReturn.gasPrice = estimateGas.feeData.gasPrice.toString();
|
|
60
|
+
console.log('Built unsigned transfer transaction:', unsignedTxToReturn);
|
|
60
61
|
try {
|
|
61
62
|
await provider.call({
|
|
62
63
|
from: options.fromAddress,
|
|
@@ -69,6 +70,7 @@ export const buildUnsignedTransferTx = async (options) => {
|
|
|
69
70
|
catch (error) {
|
|
70
71
|
throw new Error('Transaction would revert, provider call unsuccessful: ' + error.message || error);
|
|
71
72
|
}
|
|
73
|
+
console.log('Built unsigned transfer transaction:', unsignedTxToReturn);
|
|
72
74
|
return {
|
|
73
75
|
unsignedTx: unsignedTxToReturn,
|
|
74
76
|
nonce,
|
|
@@ -60,6 +60,7 @@ const buildUnsignedTransferTx = async (options) => {
|
|
|
60
60
|
};
|
|
61
61
|
if (estimateGas.feeData.gasPrice)
|
|
62
62
|
unsignedTxToReturn.gasPrice = estimateGas.feeData.gasPrice.toString();
|
|
63
|
+
console.log('Built unsigned transfer transaction:', unsignedTxToReturn);
|
|
63
64
|
try {
|
|
64
65
|
await provider.call({
|
|
65
66
|
from: options.fromAddress,
|
|
@@ -72,6 +73,7 @@ const buildUnsignedTransferTx = async (options) => {
|
|
|
72
73
|
catch (error) {
|
|
73
74
|
throw new Error('Transaction would revert, provider call unsuccessful: ' + error.message || error);
|
|
74
75
|
}
|
|
76
|
+
console.log('Built unsigned transfer transaction:', unsignedTxToReturn);
|
|
75
77
|
return {
|
|
76
78
|
unsignedTx: unsignedTxToReturn,
|
|
77
79
|
nonce,
|