Skip to content

Commit

Permalink
Minor roles fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
karim-en committed Oct 30, 2023
1 parent 379cbcb commit d037e4e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion contracts/near/eth-client/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ impl EthClient {
/// Add the block header to the client.
/// `block_header` -- RLP-encoded Ethereum header;
/// `dag_nodes` -- dag nodes with their merkle proofs.
#[pause(except(roles(Role::UnrestrictedAddBlockHeader)))]
#[pause(except(roles(Role::UnrestrictedAddBlockHeader, Role::DAO)))]
#[result_serializer(borsh)]
pub fn add_block_header(
&mut self,
Expand Down
4 changes: 2 additions & 2 deletions contracts/near/eth-prover/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ impl EthProver {
.into()
}

#[pause(except(roles(Role::UnrestrictedVerifyLogEntry)))]
#[pause(except(roles(Role::UnrestrictedVerifyLogEntry, Role::DAO)))]
#[result_serializer(borsh)]
pub fn verify_log_entry(
&self,
Expand Down Expand Up @@ -169,7 +169,7 @@ impl EthProver {
/// the StorageProof `value` field. In order to verify the proof of non
/// existence, you must set `value` to empty vec, *not* the RLP encoding of 0 or null
/// (which would be 0x80).
#[pause(except(roles(Role::UnrestrictedVerifyLogEntry)))]
#[pause(except(roles(Role::UnrestrictedVerifyStorageProof, Role::DAO)))]
#[result_serializer(borsh)]
pub fn verify_storage_proof(
&self,
Expand Down

0 comments on commit d037e4e

Please sign in to comment.