Skip to content
This repository has been archived by the owner on Jan 11, 2024. It is now read-only.

Fix stack too deep #270

Merged
merged 3 commits into from
Nov 2, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions binding/src/gateway_diamond.rs

Large diffs are not rendered by default.

94 changes: 0 additions & 94 deletions binding/src/gateway_router_facet.rs
Original file line number Diff line number Diff line change
Expand Up @@ -587,28 +587,6 @@ pub mod gateway_router_facet {
},
],
),
(
::std::borrow::ToOwned::to_owned("CheckpointInfoAlreadyExists"),
::std::vec![
::ethers::core::abi::ethabi::AbiError {
name: ::std::borrow::ToOwned::to_owned(
"CheckpointInfoAlreadyExists",
),
inputs: ::std::vec![],
},
],
),
(
::std::borrow::ToOwned::to_owned("CheckpointMembershipNotCreated"),
::std::vec![
::ethers::core::abi::ethabi::AbiError {
name: ::std::borrow::ToOwned::to_owned(
"CheckpointMembershipNotCreated",
),
inputs: ::std::vec![],
},
],
),
(
::std::borrow::ToOwned::to_owned("CheckpointNotCreated"),
::std::vec![
Expand Down Expand Up @@ -1139,38 +1117,6 @@ pub mod gateway_router_facet {
abi = "CheckpointAlreadyProcessed()"
)]
pub struct CheckpointAlreadyProcessed;
///Custom Error type `CheckpointInfoAlreadyExists` with signature `CheckpointInfoAlreadyExists()` and selector `0xa04ff7c7`
#[derive(
Clone,
::ethers::contract::EthError,
::ethers::contract::EthDisplay,
Default,
Debug,
PartialEq,
Eq,
Hash,
)]
#[etherror(
name = "CheckpointInfoAlreadyExists",
abi = "CheckpointInfoAlreadyExists()"
)]
pub struct CheckpointInfoAlreadyExists;
///Custom Error type `CheckpointMembershipNotCreated` with signature `CheckpointMembershipNotCreated()` and selector `0x009f833a`
#[derive(
Clone,
::ethers::contract::EthError,
::ethers::contract::EthDisplay,
Default,
Debug,
PartialEq,
Eq,
Hash,
)]
#[etherror(
name = "CheckpointMembershipNotCreated",
abi = "CheckpointMembershipNotCreated()"
)]
pub struct CheckpointMembershipNotCreated;
///Custom Error type `CheckpointNotCreated` with signature `CheckpointNotCreated()` and selector `0x58cdd2e7`
#[derive(
Clone,
Expand Down Expand Up @@ -1546,8 +1492,6 @@ pub mod gateway_router_facet {
CannotConfirmFutureChanges(CannotConfirmFutureChanges),
CheckpointAlreadyExists(CheckpointAlreadyExists),
CheckpointAlreadyProcessed(CheckpointAlreadyProcessed),
CheckpointInfoAlreadyExists(CheckpointInfoAlreadyExists),
CheckpointMembershipNotCreated(CheckpointMembershipNotCreated),
CheckpointNotCreated(CheckpointNotCreated),
FailedAddIncompleteCheckpoint(FailedAddIncompleteCheckpoint),
FailedAddSignatory(FailedAddSignatory),
Expand Down Expand Up @@ -1618,16 +1562,6 @@ pub mod gateway_router_facet {
{
return Ok(Self::CheckpointAlreadyProcessed(decoded));
}
if let Ok(decoded) =
<CheckpointInfoAlreadyExists as ::ethers::core::abi::AbiDecode>::decode(data)
{
return Ok(Self::CheckpointInfoAlreadyExists(decoded));
}
if let Ok(decoded) =
<CheckpointMembershipNotCreated as ::ethers::core::abi::AbiDecode>::decode(data)
{
return Ok(Self::CheckpointMembershipNotCreated(decoded));
}
if let Ok(decoded) =
<CheckpointNotCreated as ::ethers::core::abi::AbiDecode>::decode(data)
{
Expand Down Expand Up @@ -1767,12 +1701,6 @@ pub mod gateway_router_facet {
Self::CheckpointAlreadyProcessed(element) => {
::ethers::core::abi::AbiEncode::encode(element)
}
Self::CheckpointInfoAlreadyExists(element) => {
::ethers::core::abi::AbiEncode::encode(element)
}
Self::CheckpointMembershipNotCreated(element) => {
::ethers::core::abi::AbiEncode::encode(element)
}
Self::CheckpointNotCreated(element) => {
::ethers::core::abi::AbiEncode::encode(element)
}
Expand Down Expand Up @@ -1866,14 +1794,6 @@ pub mod gateway_router_facet {
== <CheckpointAlreadyProcessed as ::ethers::contract::EthError>::selector() => {
true
}
_ if selector
== <CheckpointInfoAlreadyExists as ::ethers::contract::EthError>::selector() => {
true
}
_ if selector
== <CheckpointMembershipNotCreated as ::ethers::contract::EthError>::selector() => {
true
}
_ if selector
== <CheckpointNotCreated as ::ethers::contract::EthError>::selector() => {
true
Expand Down Expand Up @@ -1993,10 +1913,6 @@ pub mod gateway_router_facet {
Self::CannotConfirmFutureChanges(element) => ::core::fmt::Display::fmt(element, f),
Self::CheckpointAlreadyExists(element) => ::core::fmt::Display::fmt(element, f),
Self::CheckpointAlreadyProcessed(element) => ::core::fmt::Display::fmt(element, f),
Self::CheckpointInfoAlreadyExists(element) => ::core::fmt::Display::fmt(element, f),
Self::CheckpointMembershipNotCreated(element) => {
::core::fmt::Display::fmt(element, f)
}
Self::CheckpointNotCreated(element) => ::core::fmt::Display::fmt(element, f),
Self::FailedAddIncompleteCheckpoint(element) => {
::core::fmt::Display::fmt(element, f)
Expand Down Expand Up @@ -2069,16 +1985,6 @@ pub mod gateway_router_facet {
Self::CheckpointAlreadyProcessed(value)
}
}
impl ::core::convert::From<CheckpointInfoAlreadyExists> for GatewayRouterFacetErrors {
fn from(value: CheckpointInfoAlreadyExists) -> Self {
Self::CheckpointInfoAlreadyExists(value)
}
}
impl ::core::convert::From<CheckpointMembershipNotCreated> for GatewayRouterFacetErrors {
fn from(value: CheckpointMembershipNotCreated) -> Self {
Self::CheckpointMembershipNotCreated(value)
}
}
impl ::core::convert::From<CheckpointNotCreated> for GatewayRouterFacetErrors {
fn from(value: CheckpointNotCreated) -> Self {
Self::CheckpointNotCreated(value)
Expand Down
4 changes: 2 additions & 2 deletions binding/src/lib_staking.rs
Original file line number Diff line number Diff line change
Expand Up @@ -100,12 +100,12 @@ pub mod lib_staking {
pub static LIBSTAKING_ABI: ::ethers::contract::Lazy<::ethers::core::abi::Abi> =
::ethers::contract::Lazy::new(__abi);
#[rustfmt::skip]
const __BYTECODE: &[u8] = b"`\x80\x80`@R4a\0\x1CWa\x029\x90\x81a\0\"\x8290\x81`=\x01R\xF3[`\0\x80\xFD\xFE`\x80`@\x81\x81R`\x04\x90\x816\x10\x15a\0\x16W`\0\x80\xFD[`\0\x92\x835`\xE0\x1C\x90\x81c!\xEE\xF6\x06\x14a\x01\xEDWPc\x82\x98^\x0B\x14a\0:W`\0\x80\xFD[0\x7F\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\x14a\x01\xE9W` 6`\x03\x19\x01\x12a\x01\xE9W\x815`\x01`\x01`\xA0\x1B\x03\x80\x82\x16\x90\x81\x83\x03a\x01\xE5W`\x01`\x01`\xA0\x1B\x03\x83\x16`\0\x90\x81R`\x1C` R`@\x90 T\x92\x83\x15a\x01\xD5W`\x01`\x01`\xA0\x1B\x03\x16`\0\x90\x81R`\x1C` R`@\x90 \x86\x90U`\tT\x86\x91\x16\x80;\x15a\x01\xD1W\x81\x90`$\x86Q\x80\x94\x81\x93clq*\xB9`\xE1\x1B\x83R\x88\x8B\x84\x01RZ\xF1\x80\x15a\x01\xC7Wa\x01\x99W[P\x81G\x10a\x01\x83W\x84\x80\x80\x93\x81\x93Z\xF1=\x15a\x01~Wg\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF=\x81\x81\x11a\x01kW\x83Q\x91`\x1F\x82\x01`\x1F\x19\x90\x81\x16`?\x01\x16\x83\x01\x90\x81\x11\x83\x82\x10\x17a\x01VW\x84R\x81R\x84` =\x92\x01>[\x15a\x01IW\x82\x80\xF3[Qc\n\x12\xF5!`\xE1\x1B\x81R\xFD[`A\x86cNH{q`\xE0\x1B`\0RR`$`\0\xFD[cNH{q`\xE0\x1B\x86R`A\x85R`$\x86\xFD[a\x01@V[\x82Qc\xCDx`Y`\xE0\x1B\x81R0\x81\x86\x01R`$\x90\xFD[g\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\x81\x96\x92\x96\x11a\x01\xB4W\x83R\x938a\0\xEFV[cNH{q`\xE0\x1B\x82R`A\x85R`$\x82\xFD[\x84Q=\x88\x82>=\x90\xFD[P\x80\xFD[\x84Qcg0\x0F\x91`\xE1\x1B\x81R\x86\x90\xFD[\x85\x80\xFD[\x82\x80\xFD[\x84\x90\x81`\x03\x196\x01\x12a\x01\xD1W\x80`\x01` \x92R\xF3\xFE\xA2dipfsX\"\x12 \xC0>\x9Ec8)\x8F\x13\\\xF1\x9FK\xF5\xC51T\x95s\xE7\xDA\xCF|\xCB\xE0g\xA3\xF3-\x85;!\xEAdsolcC\0\x08\x13\x003";
const __BYTECODE: &[u8] = b"`\x80\x80`@R4a\0\x1CWa\x029\x90\x81a\0\"\x8290\x81`=\x01R\xF3[`\0\x80\xFD\xFE`\x80`@\x81\x81R`\x04\x90\x816\x10\x15a\0\x16W`\0\x80\xFD[`\0\x92\x835`\xE0\x1C\x90\x81c!\xEE\xF6\x06\x14a\x01\xEDWPc\x82\x98^\x0B\x14a\0:W`\0\x80\xFD[0\x7F\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\x14a\x01\xE9W` 6`\x03\x19\x01\x12a\x01\xE9W\x815`\x01`\x01`\xA0\x1B\x03\x80\x82\x16\x90\x81\x83\x03a\x01\xE5W`\x01`\x01`\xA0\x1B\x03\x83\x16`\0\x90\x81R`\x1C` R`@\x90 T\x92\x83\x15a\x01\xD5W`\x01`\x01`\xA0\x1B\x03\x16`\0\x90\x81R`\x1C` R`@\x90 \x86\x90U`\tT\x86\x91\x16\x80;\x15a\x01\xD1W\x81\x90`$\x86Q\x80\x94\x81\x93clq*\xB9`\xE1\x1B\x83R\x88\x8B\x84\x01RZ\xF1\x80\x15a\x01\xC7Wa\x01\x99W[P\x81G\x10a\x01\x83W\x84\x80\x80\x93\x81\x93Z\xF1=\x15a\x01~Wg\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF=\x81\x81\x11a\x01kW\x83Q\x91`\x1F\x82\x01`\x1F\x19\x90\x81\x16`?\x01\x16\x83\x01\x90\x81\x11\x83\x82\x10\x17a\x01VW\x84R\x81R\x84` =\x92\x01>[\x15a\x01IW\x82\x80\xF3[Qc\n\x12\xF5!`\xE1\x1B\x81R\xFD[`A\x86cNH{q`\xE0\x1B`\0RR`$`\0\xFD[cNH{q`\xE0\x1B\x86R`A\x85R`$\x86\xFD[a\x01@V[\x82Qc\xCDx`Y`\xE0\x1B\x81R0\x81\x86\x01R`$\x90\xFD[g\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\x81\x96\x92\x96\x11a\x01\xB4W\x83R\x938a\0\xEFV[cNH{q`\xE0\x1B\x82R`A\x85R`$\x82\xFD[\x84Q=\x88\x82>=\x90\xFD[P\x80\xFD[\x84Qcg0\x0F\x91`\xE1\x1B\x81R\x86\x90\xFD[\x85\x80\xFD[\x82\x80\xFD[\x84\x90\x81`\x03\x196\x01\x12a\x01\xD1W\x80`\x01` \x92R\xF3\xFE\xA2dipfsX\"\x12 \x1D0\x9B\xB6OcS.\x03A\x9E\xC0\x945\x10\xDDO\x8E\x8F\x92{\x14\xB0\xAA\xD9\xB82\xB8\xDE\xAA\x1E\xB7dsolcC\0\x08\x13\x003";
/// The bytecode of the contract.
pub static LIBSTAKING_BYTECODE: ::ethers::core::types::Bytes =
::ethers::core::types::Bytes::from_static(__BYTECODE);
#[rustfmt::skip]
const __DEPLOYED_BYTECODE: &[u8] = b"`\x80`@\x81\x81R`\x04\x90\x816\x10\x15a\0\x16W`\0\x80\xFD[`\0\x92\x835`\xE0\x1C\x90\x81c!\xEE\xF6\x06\x14a\x01\xEDWPc\x82\x98^\x0B\x14a\0:W`\0\x80\xFD[0\x7F\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\x14a\x01\xE9W` 6`\x03\x19\x01\x12a\x01\xE9W\x815`\x01`\x01`\xA0\x1B\x03\x80\x82\x16\x90\x81\x83\x03a\x01\xE5W`\x01`\x01`\xA0\x1B\x03\x83\x16`\0\x90\x81R`\x1C` R`@\x90 T\x92\x83\x15a\x01\xD5W`\x01`\x01`\xA0\x1B\x03\x16`\0\x90\x81R`\x1C` R`@\x90 \x86\x90U`\tT\x86\x91\x16\x80;\x15a\x01\xD1W\x81\x90`$\x86Q\x80\x94\x81\x93clq*\xB9`\xE1\x1B\x83R\x88\x8B\x84\x01RZ\xF1\x80\x15a\x01\xC7Wa\x01\x99W[P\x81G\x10a\x01\x83W\x84\x80\x80\x93\x81\x93Z\xF1=\x15a\x01~Wg\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF=\x81\x81\x11a\x01kW\x83Q\x91`\x1F\x82\x01`\x1F\x19\x90\x81\x16`?\x01\x16\x83\x01\x90\x81\x11\x83\x82\x10\x17a\x01VW\x84R\x81R\x84` =\x92\x01>[\x15a\x01IW\x82\x80\xF3[Qc\n\x12\xF5!`\xE1\x1B\x81R\xFD[`A\x86cNH{q`\xE0\x1B`\0RR`$`\0\xFD[cNH{q`\xE0\x1B\x86R`A\x85R`$\x86\xFD[a\x01@V[\x82Qc\xCDx`Y`\xE0\x1B\x81R0\x81\x86\x01R`$\x90\xFD[g\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\x81\x96\x92\x96\x11a\x01\xB4W\x83R\x938a\0\xEFV[cNH{q`\xE0\x1B\x82R`A\x85R`$\x82\xFD[\x84Q=\x88\x82>=\x90\xFD[P\x80\xFD[\x84Qcg0\x0F\x91`\xE1\x1B\x81R\x86\x90\xFD[\x85\x80\xFD[\x82\x80\xFD[\x84\x90\x81`\x03\x196\x01\x12a\x01\xD1W\x80`\x01` \x92R\xF3\xFE\xA2dipfsX\"\x12 \xC0>\x9Ec8)\x8F\x13\\\xF1\x9FK\xF5\xC51T\x95s\xE7\xDA\xCF|\xCB\xE0g\xA3\xF3-\x85;!\xEAdsolcC\0\x08\x13\x003";
const __DEPLOYED_BYTECODE: &[u8] = b"`\x80`@\x81\x81R`\x04\x90\x816\x10\x15a\0\x16W`\0\x80\xFD[`\0\x92\x835`\xE0\x1C\x90\x81c!\xEE\xF6\x06\x14a\x01\xEDWPc\x82\x98^\x0B\x14a\0:W`\0\x80\xFD[0\x7F\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\x14a\x01\xE9W` 6`\x03\x19\x01\x12a\x01\xE9W\x815`\x01`\x01`\xA0\x1B\x03\x80\x82\x16\x90\x81\x83\x03a\x01\xE5W`\x01`\x01`\xA0\x1B\x03\x83\x16`\0\x90\x81R`\x1C` R`@\x90 T\x92\x83\x15a\x01\xD5W`\x01`\x01`\xA0\x1B\x03\x16`\0\x90\x81R`\x1C` R`@\x90 \x86\x90U`\tT\x86\x91\x16\x80;\x15a\x01\xD1W\x81\x90`$\x86Q\x80\x94\x81\x93clq*\xB9`\xE1\x1B\x83R\x88\x8B\x84\x01RZ\xF1\x80\x15a\x01\xC7Wa\x01\x99W[P\x81G\x10a\x01\x83W\x84\x80\x80\x93\x81\x93Z\xF1=\x15a\x01~Wg\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF=\x81\x81\x11a\x01kW\x83Q\x91`\x1F\x82\x01`\x1F\x19\x90\x81\x16`?\x01\x16\x83\x01\x90\x81\x11\x83\x82\x10\x17a\x01VW\x84R\x81R\x84` =\x92\x01>[\x15a\x01IW\x82\x80\xF3[Qc\n\x12\xF5!`\xE1\x1B\x81R\xFD[`A\x86cNH{q`\xE0\x1B`\0RR`$`\0\xFD[cNH{q`\xE0\x1B\x86R`A\x85R`$\x86\xFD[a\x01@V[\x82Qc\xCDx`Y`\xE0\x1B\x81R0\x81\x86\x01R`$\x90\xFD[g\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\x81\x96\x92\x96\x11a\x01\xB4W\x83R\x938a\0\xEFV[cNH{q`\xE0\x1B\x82R`A\x85R`$\x82\xFD[\x84Q=\x88\x82>=\x90\xFD[P\x80\xFD[\x84Qcg0\x0F\x91`\xE1\x1B\x81R\x86\x90\xFD[\x85\x80\xFD[\x82\x80\xFD[\x84\x90\x81`\x03\x196\x01\x12a\x01\xD1W\x80`\x01` \x92R\xF3\xFE\xA2dipfsX\"\x12 \x1D0\x9B\xB6OcS.\x03A\x9E\xC0\x945\x10\xDDO\x8E\x8F\x92{\x14\xB0\xAA\xD9\xB82\xB8\xDE\xAA\x1E\xB7dsolcC\0\x08\x13\x003";
/// The deployed bytecode of the contract.
pub static LIBSTAKING_DEPLOYED_BYTECODE: ::ethers::core::types::Bytes =
::ethers::core::types::Bytes::from_static(__DEPLOYED_BYTECODE);
Expand Down
4 changes: 2 additions & 2 deletions binding/src/lib_staking_change_log.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,12 @@ pub mod lib_staking_change_log {
pub static LIBSTAKINGCHANGELOG_ABI: ::ethers::contract::Lazy<::ethers::core::abi::Abi> =
::ethers::contract::Lazy::new(__abi);
#[rustfmt::skip]
const __BYTECODE: &[u8] = b"`\x80\x80`@R4`\x17W`:\x90\x81`\x1D\x8290\x81PP\xF3[`\0\x80\xFD\xFE`\0\x80\xFD\xFE\xA2dipfsX\"\x12 =\x9B\x13\x0E>\xDE\xEE\xE5L\rv\xFBL\xE4\x0F\xCF\x05_\xB2\xE0.\x81+C\xD5\x1E\0\xFC\xC5\xD4\x8CedsolcC\0\x08\x13\x003";
const __BYTECODE: &[u8] = b"`\x80\x80`@R4`\x17W`:\x90\x81`\x1D\x8290\x81PP\xF3[`\0\x80\xFD\xFE`\0\x80\xFD\xFE\xA2dipfsX\"\x12 \xBF\x84o0\x0F\xE8\xA2\xFF\x0F\xA5cK\\\xA0T\xEF\xD2\xDA[|\xD5\xF6\x0B\xE3\xA8O\x96\xACll\r\xE1dsolcC\0\x08\x13\x003";
/// The bytecode of the contract.
pub static LIBSTAKINGCHANGELOG_BYTECODE: ::ethers::core::types::Bytes =
::ethers::core::types::Bytes::from_static(__BYTECODE);
#[rustfmt::skip]
const __DEPLOYED_BYTECODE: &[u8] = b"`\0\x80\xFD\xFE\xA2dipfsX\"\x12 =\x9B\x13\x0E>\xDE\xEE\xE5L\rv\xFBL\xE4\x0F\xCF\x05_\xB2\xE0.\x81+C\xD5\x1E\0\xFC\xC5\xD4\x8CedsolcC\0\x08\x13\x003";
const __DEPLOYED_BYTECODE: &[u8] = b"`\0\x80\xFD\xFE\xA2dipfsX\"\x12 \xBF\x84o0\x0F\xE8\xA2\xFF\x0F\xA5cK\\\xA0T\xEF\xD2\xDA[|\xD5\xF6\x0B\xE3\xA8O\x96\xACll\r\xE1dsolcC\0\x08\x13\x003";
/// The deployed bytecode of the contract.
pub static LIBSTAKINGCHANGELOG_DEPLOYED_BYTECODE: ::ethers::core::types::Bytes =
::ethers::core::types::Bytes::from_static(__DEPLOYED_BYTECODE);
Expand Down
2 changes: 1 addition & 1 deletion binding/src/subnet_actor_diamond.rs
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ pub mod subnet_actor_diamond {
pub static SUBNETACTORDIAMOND_ABI: ::ethers::contract::Lazy<::ethers::core::abi::Abi> =
::ethers::contract::Lazy::new(__abi);
#[rustfmt::skip]
const __DEPLOYED_BYTECODE: &[u8] = b"`\x80`@R6\x15`\x91W`\0\x805`\x01`\x01`\xE0\x1B\x03\x19\x16\x80\x82R\x7F\x80n\x0C\xBB\x9F\xCE)k\xBC3jH\xF4+\xF1\xDB\xC6\x97\"\xD1\x8D\x90\xD6\xFEp[u\x82\xC2\xBBK\xD2` R`@\x82 T`\x01`\x01`\xA0\x1B\x03\x16\x90\x81\x15`oWP\x81\x80\x916\x82\x807\x816\x91Z\xF4=\x82\x80>\x15`kW=\x90\xF3[=\x90\xFD[c\n\x82\xDDs`\xE3\x1B`\x80R`\x01`\x01`\xE0\x1B\x03\x19\x16`\x84R`\x7F\x19`\xA4\x01`\x80\xFD[`\tT`\x01`\x01`\xA0\x1B\x03\x163\x03`\xA4W\0[c\xE7\xE6\x01\xDB`\xE0\x1B`\x80R`\x04`\x80\xFD\xFE\xA2dipfsX\"\x12 \xE3\x7FC\xF7\xDE3(\xF7\xA7\x87\xB9pIvb\xE1\xFB\xF5{\xC7\xEE#ltC}O\x1Dh\xBEEadsolcC\0\x08\x13\x003";
const __DEPLOYED_BYTECODE: &[u8] = b"`\x80`@R6\x15`\x91W`\0\x805`\x01`\x01`\xE0\x1B\x03\x19\x16\x80\x82R\x7F\x80n\x0C\xBB\x9F\xCE)k\xBC3jH\xF4+\xF1\xDB\xC6\x97\"\xD1\x8D\x90\xD6\xFEp[u\x82\xC2\xBBK\xD2` R`@\x82 T`\x01`\x01`\xA0\x1B\x03\x16\x90\x81\x15`oWP\x81\x80\x916\x82\x807\x816\x91Z\xF4=\x82\x80>\x15`kW=\x90\xF3[=\x90\xFD[c\n\x82\xDDs`\xE3\x1B`\x80R`\x01`\x01`\xE0\x1B\x03\x19\x16`\x84R`\x7F\x19`\xA4\x01`\x80\xFD[`\tT`\x01`\x01`\xA0\x1B\x03\x163\x03`\xA4W\0[c\xE7\xE6\x01\xDB`\xE0\x1B`\x80R`\x04`\x80\xFD\xFE\xA2dipfsX\"\x12 N\xD2\x82\xA3]EM\x9C\xF4\xB7n\x7F\x19\xB8\t\xEB!\xD1w\x9A8\x97\xF4\xD5cX\x8Au~\xC6\xCB dsolcC\0\x08\x13\x003";
/// The deployed bytecode of the contract.
pub static SUBNETACTORDIAMOND_DEPLOYED_BYTECODE: ::ethers::core::types::Bytes =
::ethers::core::types::Bytes::from_static(__DEPLOYED_BYTECODE);
Expand Down
10 changes: 4 additions & 6 deletions src/gateway/GatewayRouterFacet.sol
Original file line number Diff line number Diff line change
Expand Up @@ -232,10 +232,8 @@ contract GatewayRouterFacet is GatewayActorModifiers {
revert CheckpointNotCreated();
}

bytes32 checkpointHash = checkpointInfo.hash;

// slither-disable-next-line unused-return
(address recoveredSignatory, ECDSA.RecoverError err, ) = ECDSA.tryRecover(checkpointHash, signature);
(address recoveredSignatory, ECDSA.RecoverError err, ) = ECDSA.tryRecover(checkpointInfo.hash, signature);
if (err != ECDSA.RecoverError.NoError) {
revert InvalidSignature();
}
Expand Down Expand Up @@ -273,13 +271,13 @@ contract GatewayRouterFacet is GatewayActorModifiers {
}
emit QuorumReached({
height: height,
checkpoint: checkpointHash,
checkpoint: checkpointInfo.hash,
quorumWeight: checkpointInfo.currentWeight
});
} else {
emit QuorumWeightUpdated({
height: height,
checkpoint: checkpointHash,
checkpoint: checkpointInfo.hash,
newWeight: checkpointInfo.currentWeight
});
}
Expand Down Expand Up @@ -316,7 +314,7 @@ contract GatewayRouterFacet is GatewayActorModifiers {
if (!ok) {
revert FailedAddIncompleteCheckpoint();
}

CheckpointInfo memory info = CheckpointInfo({
hash: checkpoint.toHash(),
rootHash: membershipRootHash,
Expand Down
13 changes: 8 additions & 5 deletions src/lib/LibGateway.sol
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,11 @@ library LibGateway {
/// @notice returns the bottom-up checkpoint and its info at the target epoch
function getBottomUpCheckpointWithInfo(
uint64 epoch
) internal view returns (bool exists, BottomUpCheckpoint storage checkpoint, CheckpointInfo storage checkpointInfo) {
)
internal
view
returns (bool exists, BottomUpCheckpoint storage checkpoint, CheckpointInfo storage checkpointInfo)
{
GatewayActorStorage storage s = LibGatewayActorStorage.appStorage();

checkpoint = s.bottomUpCheckpoints[epoch];
Expand All @@ -53,16 +57,15 @@ library LibGateway {
}

/// @notice checks if the bottom-up checkpoint already exists at the target epoch
function bottomUpCheckpointExists(
uint64 epoch
) internal view returns (bool) {
function bottomUpCheckpointExists(uint64 epoch) internal view returns (bool) {
GatewayActorStorage storage s = LibGatewayActorStorage.appStorage();
return s.bottomUpCheckpoints[epoch].blockHeight != 0;
}

/// @notice stores checkpoint and its info to storage.
function storeBottomUpCheckpointWithInfo(
BottomUpCheckpoint memory checkpoint, CheckpointInfo memory checkpointInfo
BottomUpCheckpoint memory checkpoint,
CheckpointInfo memory checkpointInfo
) internal {
GatewayActorStorage storage s = LibGatewayActorStorage.appStorage();

Expand Down