Skip to content

Commit

Permalink
Fix test-framework tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastijankuzner committed Dec 13, 2024
1 parent 070d854 commit e2cc1ed
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@ describe<{
.withStates("vendorField")
.make();

assert.undefined(transaction.data.signature);
assert.undefined(transaction.data.v);
assert.undefined(transaction.data.r);
assert.undefined(transaction.data.s);
});

it("Transfer - should sign it with a single passphrase", async ({ factoryBuilder }) => {
Expand All @@ -44,7 +46,9 @@ describe<{
.withStates("sign")
.make();

assert.defined(transaction.data.signature);
assert.defined(transaction.data.v);
assert.defined(transaction.data.r);
assert.defined(transaction.data.s);
});

// it("ValidatorRegistration - should create a signature builder", async ({ factoryBuilder }) => {
Expand Down
12 changes: 8 additions & 4 deletions packages/test-framework/source/internal/signer.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@ describe<{

const entity = await signer.makeTransfer(options);

assert.defined(entity.data.signature);
assert.defined(entity.data.v);
assert.defined(entity.data.r);
assert.defined(entity.data.s);
// assert.defined(entity.data.vendorField);
});

Expand Down Expand Up @@ -95,9 +97,11 @@ describe<{

const entity = await signer.makeEvmCall(options);

assert.defined(entity.data.signature);
assert.equal(entity.data.recipientAddress, "0xD3D80a3Df661414a76aAd7738a136A8d7aAa1666");
assert.equal(entity.data.gasLimit, 21000);
assert.defined(entity.data.v);
assert.defined(entity.data.r);
assert.defined(entity.data.s);
assert.equal(entity.data.recipientAddress, "0xd3d80a3df661414a76aad7738a136a8d7aaa1666");
assert.equal(entity.data.gasLimit, 21_000);
assert.equal(
entity.data.data,
"a9059cbb000000000000000000000000bd6f65c58a46427af4b257cbe231d0ed69ed550800000000000000000000000000000000000000000000003635c9adc5dea00000",
Expand Down

0 comments on commit e2cc1ed

Please sign in to comment.