Skip to content

Commit

Permalink
fix: encoding of metadata in some meta transaction methods
Browse files Browse the repository at this point in the history
  • Loading branch information
strumswell committed Feb 7, 2024
1 parent fe4b803 commit b8cd69b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ export type TrustedHintRegistryDeployment = {
}

export const deployments: TrustedHintRegistryDeployment[] = [
{ chainId: 11155111, registry: '0x80F5ed34372dBb855f03d9F1D151a9DBc6450b87', type: "proxy", name: 'sepolia' },
{ chainId: 11155111, registry: '0x21B5926c81ea01f4aDd17c08516dcEC75c38cF3f', type: "logic", name: 'sepolia' },
{ chainId: 11155111, registry: '0x3a93b80e586A24373BC2394269aED10A77ef4cB2', type: "proxy", name: 'sepolia' },
{ chainId: 11155111, registry: '0x158b6823b7D5225f9B250389bd44d4077046D608', type: "logic", name: 'sepolia' },
]

export const TRUSTED_HINT_REGISTRY_ABI = [
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@spherity/trusted-hint-registry",
"version": "1.0.1",
"version": "1.0.2",
"description": "A registry for trusted hints base on ERC-7506",
"type": "module",

Expand Down
6 changes: 3 additions & 3 deletions src/TrustedHintRegistry.sol
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,7 @@ contract TrustedHintRegistry is Initializable, EIP712Upgradeable, PausableUpgrad
hashedMetadata[i] = keccak256(_metadata[i]);
}
bytes32 hash = _hashTypedDataV4(keccak256(abi.encode(
keccak256("SetHintsDelegatedSigned(address namespace,bytes32 list,bytes32[] keys,bytes32[] values, bytes[] metadata,address signer,uint256 nonce)"),
keccak256("SetHintsDelegatedSigned(address namespace,bytes32 list,bytes32[] keys,bytes32[] values,bytes[] metadata,address signer,uint256 nonce)"),
_namespace,
_list,
keccak256(abi.encodePacked(_keys)),
Expand Down Expand Up @@ -644,7 +644,7 @@ contract TrustedHintRegistry is Initializable, EIP712Upgradeable, PausableUpgrad
_list,
_key,
_value,
_metadata,
keccak256(_metadata),
_signer,
nonce
)));
Expand Down Expand Up @@ -684,7 +684,7 @@ contract TrustedHintRegistry is Initializable, EIP712Upgradeable, PausableUpgrad
_list,
_key,
_value,
_metadata,
keccak256(_metadata),
_signer,
nonces[_signer]
)));
Expand Down

0 comments on commit b8cd69b

Please sign in to comment.