From e1f99e1f5f0539397a4f71b06f069381119acd8c Mon Sep 17 00:00:00 2001 From: Seun Lanlege Date: Wed, 21 Aug 2024 18:17:41 +0000 Subject: [PATCH] add context field to GetRequest --- interfaces/Message.sol | 5 ++++- package.json | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/interfaces/Message.sol b/interfaces/Message.sol index 5cc871b..884fd85 100644 --- a/interfaces/Message.sol +++ b/interfaces/Message.sol @@ -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 { @@ -204,7 +206,8 @@ library Message { req.height, req.timeoutTimestamp, abi.encodePacked(req.from), - keysEncoding + keysEncoding, + req.context ); } diff --git a/package.json b/package.json index 0a09bad..5a39afc 100644 --- a/package.json +++ b/package.json @@ -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 ", "license": "Apache-2.0",