cloud-cryptographic-wallet
cloud-cryptographic-wallet copied to clipboard
failed to e2e test: TypeError: Signature: invalid signature. buffer length must be 65 bytes. actual: 64
$ vitest run --no-threads 1 test/e2e
RUN v0.16.0/home/runner/work/cloud-cryptographic-wallet/cloud-cryptographic-wallet
✓ packages/asn1-parser/src/parse-public-key.spec.ts (2 tests) 8ms
✓ packages/asn1-parser/src/parse-signature.spec.ts (3 tests) 4ms
✓ test/e2e/ethers/send-eth.spec.ts (2 tests) 1399ms
✓ test/e2e/legacy/ethers-send-eth.spec.ts (1 test) 582ms
✓ test/e2e/legacy/web3-send-eth.spec.ts (1 test) 463ms
✓ test/e2e/legacy/web3-sign.spec.ts (1 test) [22](https://github.com/odanado/cloud-cryptographic-wallet/runs/7207859189?check_suite_focus=true#step:8:23)2ms
❯ test/e2e/web3/send-eth.spec.ts (2 tests|1 failed) 909ms
❯ test/e2e/web3/send-eth.spec.ts > web3.js send-eth > AwsKmsSigner
→ Signature: invalid signature. buffer length must be 65 bytes. actual: 64
⎯⎯⎯⎯⎯⎯⎯ Failed Tests 1 ⎯⎯⎯⎯⎯⎯⎯
FAIL test/e2e/web3/send-eth.spec.ts > web3.js send-eth > AwsKmsSigner
TypeError: Signature: invalid signature. buffer length must be 65 bytes. actual: 64
❯ Signature.validate packages/signer/dist/index.js:114:13
112| validate() {
113| if (this.bytes.length !== 65) {
114| throw TypeError(`Signature: invalid signature. buffer length mus…
| ^
115| }
116| if (![27, 28].includes(this.v)) {
❯ new Signature packages/signer/dist/index.js:133:12
❯ Function.fromBytes packages/signer/dist/index.js:141:12
❯ Function.fromRSV packages/signer/dist/index.js:146:22
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[1/1]⎯
⎯⎯⎯⎯ Unhandled Rejection ⎯⎯⎯⎯⎯
TypeError: Signature: invalid signature. buffer length must be 65 bytes. actual: 64
❯packages/signer/dist/index.js:150:44
❯ Function.fromHash packages/signer/dist/index.js:149:32
❯ AwsKmsSigner.sign packages/aws-kms-signer/dist/index.js:34:22
❯ processTransaction packages/web3-provider-adapter/dist/index.js:176:25
❯ sendTransaction packages/web3-provider-adapter/node_modules/eth-json-rpc-middleware/dist/wallet.js:66:22
❯async /home/runner/work/cloud-cryptographic-wallet/cloud-cryptographic-wallet/node_modules/json-rpc-engine/dist/createAsyncMiddleware.js:46:13
Test Files 1 failed | 6 passed (7)
Tests 1 failed | 11 passed (12)
Time 5.51s (in thread 3.59s, 153.51%)
⎯⎯⎯⎯⎯⎯ Unhandled Errors ⎯⎯⎯⎯⎯⎯
Vitest caught 1 unhandled error during the test run. This might cause false positive tests.
Please, resolve all the errors to make sure your tests are not affected.
❯ Signature.validate packages/signer/dist/index.js:114:13
112| validate() {
113| if (this.bytes.length !== 65) {
114| throw TypeError(`Signature: invalid signature. buffer length mus…
| ^
115| }
116| if (![27, 28].includes(this.v)) {
❯ new Signature packages/signer/dist/index.js:133:12
❯ Function.fromBytes packages/signer/dist/index.js:141:12
❯ Function.fromRSV packages/signer/dist/index.js:146:22
❯packages/signer/dist/index.js:150:44
❯ Function.fromHash packages/signer/dist/index.js:149:32
❯ AwsKmsSigner.sign packages/aws-kms-signer/dist/index.js:34:22
❯ processTicksAndRejections node:internal/process/task_queues:96:5
❯ processTransaction packages/web3-provider-adapter/dist/index.js:176:[25](https://github.com/odanado/cloud-cryptographic-wallet/runs/7207859189?check_suite_focus=true#step:8:26)
❯ sendTransaction packages/web3-provider-adapter/node_modules/eth-json-rpc-middleware/dist/wallet.js:66:22
❯async /home/runner/work/cloud-cryptographic-wallet/cloud-cryptographic-wallet/node_modules/json-rpc-engine/dist/createAsyncMiddleware.js:46:13
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Error: Process completed with exit code 1.
https://github.com/odanado/cloud-cryptographic-wallet/runs/7207859189?check_suite_focus=true