Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
unclezoro committed Oct 11, 2022
1 parent c0a7af0 commit c184a00
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion contracts/CrossChain.sol
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ contract CrossChain is System, ICrossChain, IParamSubscriber{
return (true, packageType, relayFee, msgBytes);
}

function handlePackage(bytes calldata payload, bytes calldata proof, uint64 height, uint64 packageSequence, uint8 channelId) onlyInit onlyRelayer onlyWhiteLableRelayer
function handlePackage(bytes calldata payload, bytes calldata proof, uint64 height, uint64 packageSequence, uint8 channelId) onlyInit onlyRelayer onlyWhitelabelRelayer
sequenceInOrder(packageSequence, channelId) blockSynced(height) channelSupported(channelId) headerInOrder(height, channelId) external {
bytes memory payloadLocal = payload; // fix error: stack too deep, try removing local variables
bytes memory proofLocal = proof; // fix error: stack too deep, try removing local variables
Expand Down
2 changes: 1 addition & 1 deletion contracts/CrossChain.template
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ contract CrossChain is System, ICrossChain, IParamSubscriber{
return (true, packageType, relayFee, msgBytes);
}

function handlePackage(bytes calldata payload, bytes calldata proof, uint64 height, uint64 packageSequence, uint8 channelId) onlyInit onlyRelayer onlyWhiteLableRelayer
function handlePackage(bytes calldata payload, bytes calldata proof, uint64 height, uint64 packageSequence, uint8 channelId) onlyInit onlyRelayer onlyWhitelabelRelayer
sequenceInOrder(packageSequence, channelId) blockSynced(height) channelSupported(channelId) headerInOrder(height, channelId) external {
bytes memory payloadLocal = payload; // fix error: stack too deep, try removing local variables
bytes memory proofLocal = proof; // fix error: stack too deep, try removing local variables
Expand Down
8 changes: 4 additions & 4 deletions contracts/System.template
Original file line number Diff line number Diff line change
Expand Up @@ -117,22 +117,22 @@ contract System {
}

{% if network == 'local' %}
modifier onlyWhiteLableRelayer() {
modifier onlyWhitelabelRelayer() {
require(msg.sender == 0xA904540818AC9c47f2321F97F1069B9d8746c6DB || msg.sender == 0x316b2Fa7C8a2ab7E21110a4B3f58771C01A71344, "the msg sender is not a whitelabel relayer");
_;
}
{% elif network == 'QA' %}
modifier onlyWhiteLableRelayer() {
modifier onlyWhitelabelRelayer() {
require(msg.sender == 0x88cb4D8F77742c24d647BEf8049D3f3C56067cDD || msg.sender == 0x42D596440775C90db8d9187b47650986E1063493, "the msg sender is not a whitelabel relayer");
_;
}
{% elif network == 'testnet' %}
modifier onlyWhiteLableRelayer() {
modifier onlyWhitelabelRelayer() {
require(msg.sender == 0x9fB29AAc15b9A4B7F17c3385939b007540f4d791 || msg.sender == 0x37B8516a0F88E65D677229b402ec6C1e0E333004, "the msg sender is not a whitelabel relayer");
_;
}
{% else %}
modifier onlyWhiteLableRelayer() {
modifier onlyWhitelabelRelayer() {
require(msg.sender == 0xb005741528b86F5952469d80A8614591E3c5B632 || msg.sender == 0x446AA6E0DC65690403dF3F127750da1322941F3e, "the msg sender is not a whitelabel relayer");
_;
}
Expand Down
2 changes: 1 addition & 1 deletion contracts/TendermintLightClient.sol
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ contract TendermintLightClient is ILightClient, System, IParamSubscriber{
emit initConsensusState(initialHeight, cs.appHash);
}

function syncTendermintHeader(bytes calldata header, uint64 height) external onlyRelayer onlyWhiteLableRelayer returns (bool) {
function syncTendermintHeader(bytes calldata header, uint64 height) external onlyRelayer onlyWhitelabelRelayer returns (bool) {
require(submitters[height] == address(0x0), "can't sync duplicated header");
require(height > initialHeight, "can't sync header before initialHeight");

Expand Down
2 changes: 1 addition & 1 deletion contracts/TendermintLightClient.template
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ contract TendermintLightClient is ILightClient, System, IParamSubscriber{
emit initConsensusState(initialHeight, cs.appHash);
}

function syncTendermintHeader(bytes calldata header, uint64 height) external onlyRelayer onlyWhiteLableRelayer returns (bool) {
function syncTendermintHeader(bytes calldata header, uint64 height) external onlyRelayer onlyWhitelabelRelayer returns (bool) {
require(submitters[height] == address(0x0), "can't sync duplicated header");
require(height > initialHeight, "can't sync header before initialHeight");

Expand Down

0 comments on commit c184a00

Please sign in to comment.