File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ impl TapVersion {
5656}
5757
5858/// The domain separator is defined as:
59- /// - `name`: "TAP"
59+ /// - `name`: "TAP" for V1, "GraphTally" for V2 - This could be a fn argument but we don't want to change the function signature
6060/// - `version`: "1" or "2" depending on protocol version
6161/// - `chain_id`: The chain ID of the chain where the domain separator is deployed.
6262/// - `verifying_contract`: The address of the contract that is verifying the signature.
@@ -65,8 +65,13 @@ pub fn tap_eip712_domain(
6565 verifying_contract_address : Address ,
6666 version : TapVersion ,
6767) -> Eip712Domain {
68+ let name = match version {
69+ TapVersion :: V1 => "TAP" ,
70+ TapVersion :: V2 => "GraphTally" ,
71+ } ;
72+
6873 eip712_domain ! {
69- name: "TAP" ,
74+ name: name ,
7075 version: version. as_str( ) ,
7176 chain_id: chain_id,
7277 verifying_contract: verifying_contract_address,
You can’t perform that action at this time.
0 commit comments