Skip to content

Commit

Permalink
chore: format
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Apr 10, 2023
1 parent fb95dc7 commit 630f9cc
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions src/adapters/ethers.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ test('sign message', async () => {
const account = ethersWalletToAccount(wallet)
expect(
await account.signMessage({ message: 'hello world' }),
).toMatchInlineSnapshot('"0xa461f509887bd19e312c0c58467ce8ff8e300d3c1a90b608a760c5b80318eaf15fe57c96f9175d6cd4daad4663763baa7e78836e067d0163e9a2ccf2ff753f5b1b"')
).toMatchInlineSnapshot(
'"0xa461f509887bd19e312c0c58467ce8ff8e300d3c1a90b608a760c5b80318eaf15fe57c96f9175d6cd4daad4663763baa7e78836e067d0163e9a2ccf2ff753f5b1b"',
)
})

test('sign transaction', async () => {
Expand All @@ -28,7 +30,9 @@ test('sign transaction', async () => {
to: accounts[1].address,
value: parseEther('1'),
}),
).toMatchInlineSnapshot('"0xf86780808252089470997970c51812dc3a010c7d01b50e0d17dc79c8880de0b6b3a76400008026a03ec626b62cae2fd8501eeec0834f32905fe427e5662d74c54aee6327c095f575a061a2ba689d44aef7da3355126a1685cbeeb19b199d7c81ed1239a8ad649e880a"')
).toMatchInlineSnapshot(
'"0xf86780808252089470997970c51812dc3a010c7d01b50e0d17dc79c8880de0b6b3a76400008026a03ec626b62cae2fd8501eeec0834f32905fe427e5662d74c54aee6327c095f575a061a2ba689d44aef7da3355126a1685cbeeb19b199d7c81ed1239a8ad649e880a"',
)

// with types for coverage
await account.signTransaction({ type: 'legacy' })
Expand All @@ -49,7 +53,9 @@ test('signTypedData', async () => {
const account = ethersWalletToAccount(wallet)
expect(
await account.signTypedData({ ...typedData.basic, primaryType: 'Mail' }),
).toMatchInlineSnapshot('"0x32f3d5975ba38d6c2fba9b95d5cbed1febaa68003d3d588d51f2de522ad54117760cfc249470a75232552e43991f53953a3d74edf6944553c6bef2469bb9e5921b"')
).toMatchInlineSnapshot(
'"0x32f3d5975ba38d6c2fba9b95d5cbed1febaa68003d3d588d51f2de522ad54117760cfc249470a75232552e43991f53953a3d74edf6944553c6bef2469bb9e5921b"',
)

// without domain for coverage
await account.signTypedData({
Expand Down

2 comments on commit 630f9cc

@vercel
Copy link

@vercel vercel bot commented on 630f9cc Apr 10, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

viem-playground – ./playgrounds/browser

viem-playground-wagmi-dev.vercel.app
viem-playground.vercel.app
viem-playground-git-main-wagmi-dev.vercel.app

@vercel
Copy link

@vercel vercel bot commented on 630f9cc Apr 10, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.