Skip to content

Commit 42e97dc

Browse files
authored
fix: use input subnet id to lookup subnet pubkey (#679)
1 parent 57befac commit 42e97dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ic-agent/src/agent/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1030,7 +1030,7 @@ impl Agent {
10301030
self.verify_cert_for_subnet(&cert, subnet_id)?;
10311031
let public_key_path = [
10321032
"subnet".as_bytes(),
1033-
delegation.subnet_id.as_ref(),
1033+
subnet_id.as_ref(),
10341034
"public_key".as_bytes(),
10351035
];
10361036
let pk = lookup_value(&cert.tree, public_key_path)

0 commit comments

Comments
 (0)