From 2e41eb66e8243a37b5dd237cd7a1325b1de59ed3 Mon Sep 17 00:00:00 2001 From: CedarMist <134699267+CedarMist@users.noreply.github.com> Date: Mon, 26 Aug 2024 14:48:42 +0100 Subject: [PATCH 1/2] contracts: silence SIWE Solidity tests compile warnings --- contracts/contracts/tests/SiweParserTests.sol | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/contracts/contracts/tests/SiweParserTests.sol b/contracts/contracts/tests/SiweParserTests.sol index d505acd6..3e160b39 100644 --- a/contracts/contracts/tests/SiweParserTests.sol +++ b/contracts/contracts/tests/SiweParserTests.sol @@ -6,13 +6,13 @@ import {ParsedSiweMessage, SiweParser} from "../SiweParser.sol"; contract SiweParserTests { function testHexStringToAddress(bytes memory addr) external - view + pure returns (address) { return SiweParser._hexStringToAddress(addr); } - function testFromHexChar(uint8 c) external view returns (uint8) { + function testFromHexChar(uint8 c) external pure returns (uint8) { return SiweParser._fromHexChar(c); } @@ -20,11 +20,11 @@ contract SiweParserTests { bytes memory str, uint256 startIndex, uint256 endIndex - ) external view returns (bytes memory) { + ) external pure returns (bytes memory) { return SiweParser._substr(str, startIndex, endIndex); } - function testParseUint(bytes memory b) external view returns (uint256) { + function testParseUint(bytes memory b) external pure returns (uint256) { return SiweParser._parseUint(b); } @@ -32,13 +32,13 @@ contract SiweParserTests { bytes calldata str, string memory name, uint256 i - ) external view returns (bytes memory value, uint256) { + ) external pure returns (bytes memory value, uint256) { return SiweParser._parseField(str, name, i); } function testParseArray(bytes calldata str, uint256 i) external - view + pure returns (bytes[] memory values, uint256 count) { return SiweParser._parseArray(str, i); @@ -46,7 +46,7 @@ contract SiweParserTests { function testParseSiweMsg(bytes calldata siweMsg) external - view + pure returns (ParsedSiweMessage memory) { return SiweParser.parseSiweMsg(siweMsg); From bde8bfac438c0cfec1c51467901c3fe9f8728d7d Mon Sep 17 00:00:00 2001 From: CedarMist <134699267+CedarMist@users.noreply.github.com> Date: Mon, 26 Aug 2024 14:58:36 +0100 Subject: [PATCH 2/2] clients/py: pin web3.py version 6.x --- clients/py/requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clients/py/requirements.txt b/clients/py/requirements.txt index 714aa300..a8cd8435 100644 --- a/clients/py/requirements.txt +++ b/clients/py/requirements.txt @@ -1,3 +1,3 @@ cbor2 pynacl -web3 +web3==6.*