Skip to content

Commit

Permalink
add context field to GetRequest
Browse files Browse the repository at this point in the history
  • Loading branch information
seunlanlege committed Aug 21, 2024
1 parent e67af4a commit e1f99e1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion interfaces/Message.sol
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ struct GetRequest {
bytes[] keys;
// height at which to read destination state machine
uint64 height;
// Some application-specific metadata relating to this request
bytes context;
}

struct GetResponse {
Expand Down Expand Up @@ -204,7 +206,8 @@ library Message {
req.height,
req.timeoutTimestamp,
abi.encodePacked(req.from),
keysEncoding
keysEncoding,
req.context
);
}

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@polytope-labs/ismp-solidity",
"version": "0.4.2",
"version": "0.5.0",
"description": "Hyperbridge Solidity SDK for the Interoperable state machine protocol",
"author": "Polytope Labs <[email protected]>",
"license": "Apache-2.0",
Expand Down

0 comments on commit e1f99e1

Please sign in to comment.