Skip to content

Commit

Permalink
test error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
cong-or committed May 3, 2024
1 parent ef402e6 commit e63d9c9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 21 deletions.
8 changes: 1 addition & 7 deletions catalyst-gateway/bin/src/cardano/cip36_registration/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -162,13 +162,7 @@ impl Cip36Metadata {
};

if let Some(raw_61284) = raw_61284 {
let _ = validate_signature(&raw_61284, &registration, &signature).map_or_else(
|_err| {
// errors_report.push(format!("cannot validate signature {err}"));
None
},
Some,
);
let _ = validate_signature(&raw_61284, &registration, &signature).ok();
}

Some(Self {
Expand Down
14 changes: 0 additions & 14 deletions catalyst-gateway/tests/api_tests/snapshot_tool-56364174.json
Original file line number Diff line number Diff line change
Expand Up @@ -157,20 +157,6 @@
"tx_id": 767880,
"nonce": 26646331
},
{
"delegations": [
[
"0x926cddb15c7ec46a71db0323d1d8ab18a83f8f9d73e159000b2dcfc3f7050de0",
1
]
],
"rewards_address": "0x008106baa0c1e77dc1fcd5db39a9b8b44b02a2f769f8d05cb9fd922d2b40575624c917cfb508d50e3153d10b3bc916653f15575da162c55a35",
"stake_public_key": "0xbe170021430da56d675778f3feed2b851af800ae46246078bd37da4942c3143a",
"voting_power": 894284145,
"voting_purpose": 0,
"tx_id": 1151432,
"nonce": 36190561
},
{
"delegations": [
[
Expand Down

0 comments on commit e63d9c9

Please sign in to comment.