From 008420483bf123254879822d0ce6bb09e654bac9 Mon Sep 17 00:00:00 2001 From: Gas One Cent <86567384+gas1cent@users.noreply.github.com> Date: Sat, 11 Nov 2023 15:30:51 +0400 Subject: [PATCH] fix: onlyOracle modifier --- solidity/contracts/modules/request/HttpRequestModule.sol | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/solidity/contracts/modules/request/HttpRequestModule.sol b/solidity/contracts/modules/request/HttpRequestModule.sol index ad5324fc..78531a18 100644 --- a/solidity/contracts/modules/request/HttpRequestModule.sol +++ b/solidity/contracts/modules/request/HttpRequestModule.sol @@ -21,7 +21,7 @@ contract HttpRequestModule is Module, IHttpRequestModule { } /// @inheritdoc IHttpRequestModule - function createRequest(bytes32 _requestId, bytes calldata _data, address _requester) external { + function createRequest(bytes32 _requestId, bytes calldata _data, address _requester) external onlyOracle { RequestParameters memory _params = decodeRequestData(_data); _params.accountingExtension.bond({