diff --git a/interfaces/Message.sol b/interfaces/Message.sol index 4bdd23f..dc7c1e6 100644 --- a/interfaces/Message.sol +++ b/interfaces/Message.sol @@ -12,7 +12,7 @@ struct PostRequest { // request nonce uint64 nonce; // Module Id of this request origin - address from; + bytes from; // destination module id bytes to; // timestamp by which this request times out. @@ -163,7 +163,7 @@ library Message { } function encodeRequest(PostRequest memory req) internal pure returns (bytes memory) { - return abi.encodePacked(req.source, req.dest, req.nonce, req.timeoutTimestamp, abi.encodePacked(req.from), req.to, req.body); + return abi.encodePacked(req.source, req.dest, req.nonce, req.timeoutTimestamp, req.from, req.to, req.body); } function hash(PostResponse memory res) internal pure returns (bytes32) { diff --git a/package.json b/package.json index cb0d492..ebf5a58 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@polytope-labs/ismp-solidity", - "version": "0.3.4", + "version": "0.3.5", "description": "Hyperbridge Solidity SDK for the Interoperable state machine protocol", "author": "Polytope Labs ", "license": "Apache-2.0",