Make _sendMessage internal (#613)
This commit is contained in:
parent
37177d30f7
commit
f862da73f3
|
@ -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)
|
||||
|
|
|
@ -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());
|
||||
|
|
Loading…
Reference in New Issue