Skip to content

Commit 7012322

Browse files
committed
refactor(tap-aggregator): add debug message to eip712 parsing
the resulting error messages for chain_id and salt are not clear which one is the cause. Adding status debug messages to help show where it is when it errors out. Signed-off-by: Bryan Cole <[email protected]>
1 parent 2f1ea5b commit 7012322

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tap_aggregator/src/main.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,11 +133,18 @@ fn create_eip712_domain(args: &Args) -> Result<Eip712Domain> {
133133
let version = args.domain_version.clone().map(Cow::Owned);
134134

135135
// Transform optional strings into optional U256.
136+
if args.domain_chain_id.is_some() {
137+
debug!("Parsing domain chain ID...");
138+
}
136139
let chain_id: Option<U256> = args
137140
.domain_chain_id
138141
.as_ref()
139142
.map(|s| s.parse())
140143
.transpose()?;
144+
145+
if args.domain_salt.is_some() {
146+
debug!("Parsing domain salt...");
147+
}
141148
let salt: Option<FixedBytes<32>> = args.domain_salt.as_ref().map(|s| s.parse()).transpose()?;
142149

143150
// Transform optional strings into optional Address.

0 commit comments

Comments
 (0)