@rumblefishdev/eth-signer-kms
Advanced tools
Comparing version 2.1.0 to 2.2.0
@@ -70,2 +70,6 @@ "use strict"; | ||
}; | ||
if (baseTx.type === 0) { | ||
delete baseTx.maxFeePerGas; | ||
delete baseTx.maxPriorityFeePerGas; | ||
} | ||
const unsignedTx = ethers_1.utils.serializeTransaction(baseTx); | ||
@@ -72,0 +76,0 @@ const hash = keccak256_1.keccak256(ethers_1.utils.arrayify(unsignedTx)); |
{ | ||
"name": "@rumblefishdev/eth-signer-kms", | ||
"version": "2.1.0", | ||
"version": "2.2.0", | ||
"description": "Sign ethereum transaction/messages using KMS service from AWS", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -88,2 +88,7 @@ import AWS from 'aws-sdk' | ||
if (baseTx.type === 0) { | ||
delete baseTx.maxFeePerGas | ||
delete baseTx.maxPriorityFeePerGas | ||
} | ||
const unsignedTx = utils.serializeTransaction(baseTx) | ||
@@ -90,0 +95,0 @@ const hash = keccak256(utils.arrayify(unsignedTx)) |
@@ -70,2 +70,13 @@ import AWS from 'aws-sdk' | ||
it('should support legacy tx', async () => { | ||
const someWallet = Wallet.createRandom() | ||
const tx = kmsSigner.sendTransaction({ | ||
to: someWallet.address, | ||
value: utils.parseEther('1'), | ||
type: 0 | ||
}) | ||
await expect(tx).resolves.not.toThrow() | ||
}) | ||
it('should sign message using KMS', async () => { | ||
@@ -72,0 +83,0 @@ const message = 'hi' |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
31497
683