@atomiqlabs/chain-evm 2.2.0 → 2.2.1
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.
|
@@ -335,7 +335,7 @@ class EVMTransactions extends EVMModule_1.EVMModule {
|
|
|
335
335
|
const tx = ethers_1.Transaction.from({
|
|
336
336
|
...unsignedTx,
|
|
337
337
|
to: unsignedTx.to == null ? null : await (0, ethers_1.resolveAddress)(unsignedTx.to),
|
|
338
|
-
from:
|
|
338
|
+
from: null,
|
|
339
339
|
authorizationList: unsignedTx.authorizationList == null ? null : unsignedTx.authorizationList.map(val => ({
|
|
340
340
|
...val,
|
|
341
341
|
nonce: BigInt(val.nonce),
|
|
@@ -343,7 +343,7 @@ class EVMTransactions extends EVMModule_1.EVMModule {
|
|
|
343
343
|
signature: ethers_1.Signature.from(val.signature)
|
|
344
344
|
}))
|
|
345
345
|
});
|
|
346
|
-
return
|
|
346
|
+
return tx.unsignedSerialized;
|
|
347
347
|
}
|
|
348
348
|
/**
|
|
349
349
|
* Serializes the signed EVM transaction
|
package/package.json
CHANGED
|
@@ -399,7 +399,7 @@ export class EVMTransactions extends EVMModule<any> {
|
|
|
399
399
|
const tx = Transaction.from({
|
|
400
400
|
...unsignedTx,
|
|
401
401
|
to: unsignedTx.to==null ? null : await resolveAddress(unsignedTx.to),
|
|
402
|
-
from:
|
|
402
|
+
from: null, // Unsigned transaction cannot have its `from` field populated
|
|
403
403
|
authorizationList: unsignedTx.authorizationList==null ? null : unsignedTx.authorizationList.map(val => ({
|
|
404
404
|
...val,
|
|
405
405
|
nonce: BigInt(val.nonce),
|
|
@@ -407,7 +407,7 @@ export class EVMTransactions extends EVMModule<any> {
|
|
|
407
407
|
signature: Signature.from(val.signature)
|
|
408
408
|
}))
|
|
409
409
|
});
|
|
410
|
-
return
|
|
410
|
+
return tx.unsignedSerialized;
|
|
411
411
|
}
|
|
412
412
|
|
|
413
413
|
/**
|