Make _sendMessage internal (#613)

This commit is contained in:
Kirill Fedoseev 2021-08-04 00:33:58 +04:00 committed by GitHub
parent 37177d30f7
commit f862da73f3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 6 deletions

View File

@ -48,11 +48,6 @@ library ArbitraryMessage {
gasLimit := and(shr(64, blob), 0xffffffff)
dataType := byte(26, blob)
if gt(and(dataType, 0x7f), 0) {
// for now, only 0x00 and 0x80 datatypes are supported - regular AMB calls
// other dataType values are kept reserved for future use
revert(0, 0)
}
// load source chain id length
let chainIdLength := byte(24, blob)

View File

@ -28,7 +28,7 @@ contract MessageDelivery is BasicAMB, MessageProcessor {
* @param _gas gas limit used on the other network for executing a message
* @param _dataType AMB message dataType to be included as a part of the header
*/
function _sendMessage(address _contract, bytes _data, uint256 _gas, uint256 _dataType) public returns (bytes32) {
function _sendMessage(address _contract, bytes _data, uint256 _gas, uint256 _dataType) internal returns (bytes32) {
// it is not allowed to pass messages while other messages are processed
// if other is not explicitly configured
require(messageId() == bytes32(0) || allowReentrantRequests());