Skip to content

Commit

Permalink
fix: hardhat tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Kelvyne committed Dec 26, 2023
1 parent ffeb1e7 commit 9704bb4
Show file tree
Hide file tree
Showing 20 changed files with 58 additions and 243 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"_format": "hh-sol-dbg-1",
"buildInfo": "../../build-info/fd068d5ca84930c6ffb69a4def64cf81.json"
"buildInfo": "../../build-info/d699b9a3d7351a481d985f908e577701.json"
}
4 changes: 2 additions & 2 deletions artifacts/FreshCryptoLib/FCL_Webauthn.sol/FCL_WebAuthn.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
"type": "error"
}
],
"bytecode": "0x60566037600b82828239805160001a607314602a57634e487b7160e01b600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea26469706673582212200263862a83cad763fa89c0fbc976522f2fe1f6f58aa8f116f81dd44d79ab837264736f6c63430008140033",
"deployedBytecode": "0x73000000000000000000000000000000000000000030146080604052600080fdfea26469706673582212200263862a83cad763fa89c0fbc976522f2fe1f6f58aa8f116f81dd44d79ab837264736f6c63430008140033",
"bytecode": "0x60566037600b82828239805160001a607314602a57634e487b7160e01b600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea26469706673582212205ec686acfa02e88a7b10e3662be27203c5dbafb297ba4beccb1abe866cc1438964736f6c63430008140033",
"deployedBytecode": "0x73000000000000000000000000000000000000000030146080604052600080fdfea26469706673582212205ec686acfa02e88a7b10e3662be27203c5dbafb297ba4beccb1abe866cc1438964736f6c63430008140033",
"linkReferences": {},
"deployedLinkReferences": {}
}
4 changes: 4 additions & 0 deletions artifacts/FreshCryptoLib/FCL_ecdsa.sol/FCL_ecdsa.dbg.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"_format": "hh-sol-dbg-1",
"buildInfo": "../../build-info/d699b9a3d7351a481d985f908e577701.json"
}
10 changes: 10 additions & 0 deletions artifacts/FreshCryptoLib/FCL_ecdsa.sol/FCL_ecdsa.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"_format": "hh-sol-artifact-1",
"contractName": "FCL_ecdsa",
"sourceName": "FreshCryptoLib/FCL_ecdsa.sol",
"abi": [],
"bytecode": "0x60566037600b82828239805160001a607314602a57634e487b7160e01b600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea2646970667358221220b29a801ab981744287cd32ec87d54caa302eadb87d56b183ab94e3275fd8226564736f6c63430008140033",
"deployedBytecode": "0x73000000000000000000000000000000000000000030146080604052600080fdfea2646970667358221220b29a801ab981744287cd32ec87d54caa302eadb87d56b183ab94e3275fd8226564736f6c63430008140033",
"linkReferences": {},
"deployedLinkReferences": {}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"_format": "hh-sol-dbg-1",
"buildInfo": "../../build-info/d699b9a3d7351a481d985f908e577701.json"
}
10 changes: 10 additions & 0 deletions artifacts/FreshCryptoLib/FCL_ecdsa_utils.sol/FCL_ecdsa_utils.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"_format": "hh-sol-artifact-1",
"contractName": "FCL_ecdsa_utils",
"sourceName": "FreshCryptoLib/FCL_ecdsa_utils.sol",
"abi": [],
"bytecode": "0x60566037600b82828239805160001a607314602a57634e487b7160e01b600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea2646970667358221220961fa3a78d8662c41faec7b285d5cbcd644c3eff5473df218b753a4efb3afa3a64736f6c63430008140033",
"deployedBytecode": "0x73000000000000000000000000000000000000000030146080604052600080fdfea2646970667358221220961fa3a78d8662c41faec7b285d5cbcd644c3eff5473df218b753a4efb3afa3a64736f6c63430008140033",
"linkReferences": {},
"deployedLinkReferences": {}
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"_format": "hh-sol-dbg-1",
"buildInfo": "../../build-info/fd068d5ca84930c6ffb69a4def64cf81.json"
"buildInfo": "../../build-info/d699b9a3d7351a481d985f908e577701.json"
}
129 changes: 3 additions & 126 deletions artifacts/FreshCryptoLib/FCL_elliptic.sol/FCL_Elliptic_ZZ.json

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"_format": "hh-sol-dbg-1",
"buildInfo": "../../../build-info/fd068d5ca84930c6ffb69a4def64cf81.json"
"buildInfo": "../../../build-info/d699b9a3d7351a481d985f908e577701.json"
}
1 change: 1 addition & 0 deletions artifacts/build-info/d699b9a3d7351a481d985f908e577701.json

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion artifacts/build-info/fd068d5ca84930c6ffb69a4def64cf81.json

This file was deleted.

This file was deleted.

This file was deleted.

2 changes: 1 addition & 1 deletion artifacts/contracts/P256Signer.sol/P256Signer.dbg.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"_format": "hh-sol-dbg-1",
"buildInfo": "../../build-info/fd068d5ca84930c6ffb69a4def64cf81.json"
"buildInfo": "../../build-info/d699b9a3d7351a481d985f908e577701.json"
}
36 changes: 14 additions & 22 deletions artifacts/contracts/P256Signer.sol/P256Signer.json

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"_format": "hh-sol-dbg-1",
"buildInfo": "../../build-info/fd068d5ca84930c6ffb69a4def64cf81.json"
"buildInfo": "../../build-info/d699b9a3d7351a481d985f908e577701.json"
}
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@
"type": "function"
}
],
"bytecode": "0x60a060405234801561001057600080fd5b5060405161031a38038061031a83398101604081905261002f91610040565b6001600160a01b0316608052610070565b60006020828403121561005257600080fd5b81516001600160a01b038116811461006957600080fd5b9392505050565b60805161028a610090600039600081816040015260d7015261028a6000f3fe608060405234801561001057600080fd5b50600436106100365760003560e01c80635c60da1b1461003b5780639f7b45791461008b575b600080fd5b6100627f000000000000000000000000000000000000000000000000000000000000000081565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200160405180910390f35b610062610099366004610232565b60008083836040516020016100b8929190918252602082015260400190565b60405160208183030381529060405280519060200120905060006100fc7f0000000000000000000000000000000000000000000000000000000000000000836101db565b6040517fe4a30116000000000000000000000000000000000000000000000000000000008152600481018790526024810186905290915073ffffffffffffffffffffffffffffffffffffffff82169063e4a3011690604401600060405180830381600087803b15801561016e57600080fd5b505af1158015610182573d6000803e3d6000fd5b505060405173ffffffffffffffffffffffffffffffffffffffff841681528692508791507f33b61205835e3063eb8935cac4b29d7fc333ad80d6cb11893ba4758adf8cdde19060200160405180910390a3949350505050565b60006c5af43d3d93803e602a57fd5bf36021528260145273602c3d8160093d39f33d3d3d3d363d3d37363d73600052816035600c6000f59050806102275763301164256000526004601cfd5b600060215292915050565b6000806040838503121561024557600080fd5b5050803592602090910135915056fea2646970667358221220d58b58802d5c7747f06cdad3d5dae1daf849ad475c9f80c8a469c68e8b50b75264736f6c63430008140033",
"deployedBytecode": "0x608060405234801561001057600080fd5b50600436106100365760003560e01c80635c60da1b1461003b5780639f7b45791461008b575b600080fd5b6100627f000000000000000000000000000000000000000000000000000000000000000081565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200160405180910390f35b610062610099366004610232565b60008083836040516020016100b8929190918252602082015260400190565b60405160208183030381529060405280519060200120905060006100fc7f0000000000000000000000000000000000000000000000000000000000000000836101db565b6040517fe4a30116000000000000000000000000000000000000000000000000000000008152600481018790526024810186905290915073ffffffffffffffffffffffffffffffffffffffff82169063e4a3011690604401600060405180830381600087803b15801561016e57600080fd5b505af1158015610182573d6000803e3d6000fd5b505060405173ffffffffffffffffffffffffffffffffffffffff841681528692508791507f33b61205835e3063eb8935cac4b29d7fc333ad80d6cb11893ba4758adf8cdde19060200160405180910390a3949350505050565b60006c5af43d3d93803e602a57fd5bf36021528260145273602c3d8160093d39f33d3d3d3d363d3d37363d73600052816035600c6000f59050806102275763301164256000526004601cfd5b600060215292915050565b6000806040838503121561024557600080fd5b5050803592602090910135915056fea2646970667358221220d58b58802d5c7747f06cdad3d5dae1daf849ad475c9f80c8a469c68e8b50b75264736f6c63430008140033",
"bytecode": "0x60a060405234801561001057600080fd5b5060405161031a38038061031a83398101604081905261002f91610040565b6001600160a01b0316608052610070565b60006020828403121561005257600080fd5b81516001600160a01b038116811461006957600080fd5b9392505050565b60805161028a610090600039600081816040015260d7015261028a6000f3fe608060405234801561001057600080fd5b50600436106100365760003560e01c80635c60da1b1461003b5780639f7b45791461008b575b600080fd5b6100627f000000000000000000000000000000000000000000000000000000000000000081565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200160405180910390f35b610062610099366004610232565b60008083836040516020016100b8929190918252602082015260400190565b60405160208183030381529060405280519060200120905060006100fc7f0000000000000000000000000000000000000000000000000000000000000000836101db565b6040517fe4a30116000000000000000000000000000000000000000000000000000000008152600481018790526024810186905290915073ffffffffffffffffffffffffffffffffffffffff82169063e4a3011690604401600060405180830381600087803b15801561016e57600080fd5b505af1158015610182573d6000803e3d6000fd5b505060405173ffffffffffffffffffffffffffffffffffffffff841681528692508791507f33b61205835e3063eb8935cac4b29d7fc333ad80d6cb11893ba4758adf8cdde19060200160405180910390a3949350505050565b60006c5af43d3d93803e602a57fd5bf36021528260145273602c3d8160093d39f33d3d3d3d363d3d37363d73600052816035600c6000f59050806102275763301164256000526004601cfd5b600060215292915050565b6000806040838503121561024557600080fd5b5050803592602090910135915056fea264697066735822122071f53aa036351be28c2415d8e5721596cc980c32c199aac9af70658e7c86902d64736f6c63430008140033",
"deployedBytecode": "0x608060405234801561001057600080fd5b50600436106100365760003560e01c80635c60da1b1461003b5780639f7b45791461008b575b600080fd5b6100627f000000000000000000000000000000000000000000000000000000000000000081565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200160405180910390f35b610062610099366004610232565b60008083836040516020016100b8929190918252602082015260400190565b60405160208183030381529060405280519060200120905060006100fc7f0000000000000000000000000000000000000000000000000000000000000000836101db565b6040517fe4a30116000000000000000000000000000000000000000000000000000000008152600481018790526024810186905290915073ffffffffffffffffffffffffffffffffffffffff82169063e4a3011690604401600060405180830381600087803b15801561016e57600080fd5b505af1158015610182573d6000803e3d6000fd5b505060405173ffffffffffffffffffffffffffffffffffffffff841681528692508791507f33b61205835e3063eb8935cac4b29d7fc333ad80d6cb11893ba4758adf8cdde19060200160405180910390a3949350505050565b60006c5af43d3d93803e602a57fd5bf36021528260145273602c3d8160093d39f33d3d3d3d363d3d37363d73600052816035600c6000f59050806102275763301164256000526004601cfd5b600060215292915050565b6000806040838503121561024557600080fd5b5050803592602090910135915056fea264697066735822122071f53aa036351be28c2415d8e5721596cc980c32c199aac9af70658e7c86902d64736f6c63430008140033",
"linkReferences": {},
"deployedLinkReferences": {}
}
2 changes: 1 addition & 1 deletion artifacts/solady/src/utils/LibClone.sol/LibClone.dbg.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"_format": "hh-sol-dbg-1",
"buildInfo": "../../../../build-info/fd068d5ca84930c6ffb69a4def64cf81.json"
"buildInfo": "../../../../build-info/d699b9a3d7351a481d985f908e577701.json"
}
2 changes: 1 addition & 1 deletion lib/forge-std
10 changes: 1 addition & 9 deletions test/hardhat/safe.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,7 @@ describe("Gnosis Safe", function () {
it('should deploy a Safe, add a p256 signer and verify a signature with Webauthn', async () => {
const signer = await ethers.getImpersonatedSigner('0xb908ca274f85c4732640aaf44a99543ab63c7626');

const WrapperFCLWebAuthn = await ethers.getContractFactory("WrapperFCLWebAuthn");
const wrapperFCLWebAuthn = await WrapperFCLWebAuthn.connect(signer).deploy();
await wrapperFCLWebAuthn.waitForDeployment();

const P256SignerImplementationFactory = await ethers.getContractFactory("P256Signer", {
libraries: {
WrapperFCLWebAuthn: await wrapperFCLWebAuthn.getAddress()
}
});
const P256SignerImplementationFactory = await ethers.getContractFactory("P256Signer");

const implementation = await P256SignerImplementationFactory.connect(signer).deploy();
await implementation.waitForDeployment();
Expand Down

0 comments on commit 9704bb4

Please sign in to comment.