From 01253f00521974ace199642d6d65638b5978c802 Mon Sep 17 00:00:00 2001 From: chessai Date: Tue, 13 Feb 2024 12:16:04 -0600 Subject: [PATCH] add example to hyperlane-message-id Pact Native --- src/Pact/Native.hs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Pact/Native.hs b/src/Pact/Native.hs index e3bc26333..702297cf5 100644 --- a/src/Pact/Native.hs +++ b/src/Pact/Native.hs @@ -1583,7 +1583,9 @@ hyperlaneMessageIdDef = defGasRNative "hyperlane-message-id" hyperlaneMessageId' (funType tTyString [("x", tTyObjectAny)]) - [] + [ + "(hyperlane-message-id {\"destinationDomain\": 1,\"nonce\": 325,\"originDomain\": 626,\"recipient\": \"0x71C7656EC7ab88b098defB751B7401B5f6d8976F\",\"sender\": \"0x6b622d746f6b656e2d726f75746572\",\"tokenMessage\": {\"amount\": 10000000000000000000.0,\"recipient\": \"0x71C7656EC7ab88b098defB751B7401B5f6d8976F\"},\"version\": 1})" + ] "Get the Message Id of a Hyperlane Message object." where hyperlaneMessageId' :: RNativeFun e