Update dependencies (#70)
Updates hardhat and solidity Uses personal_sign instead of eth_sign, because ethers.js also uses personal_sign, and eth_sign is now broken in hardhat (arguments are reversed). Co-authored-by: Adam Uhlíř <adam@uhlir.dev>
This commit is contained in:
parent
bcb539148a
commit
4ad5b6065e
|
@ -18,7 +18,7 @@ jobs:
|
|||
- name: Install NodeJS
|
||||
uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: '14'
|
||||
node-version: '18'
|
||||
- name: Install test node
|
||||
working-directory: testnode
|
||||
run: npm install
|
||||
|
|
|
@ -327,7 +327,7 @@ method signMessage*(
|
|||
convertSignerError:
|
||||
let client = await signer.provider.client
|
||||
let address = await signer.getAddress()
|
||||
return await client.eth_sign(address, message)
|
||||
return await client.personal_sign(message, address)
|
||||
|
||||
method sendTransaction*(
|
||||
signer: JsonRpcSigner,
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
proc net_version(): string
|
||||
proc personal_sign(message: seq[byte], account: Address): seq[byte]
|
||||
proc eth_accounts: seq[Address]
|
||||
proc eth_blockNumber: UInt256
|
||||
proc eth_call(transaction: Transaction, blockTag: BlockTag): seq[byte]
|
||||
|
@ -13,7 +14,6 @@ proc eth_chainId(): UInt256
|
|||
proc eth_sendTransaction(transaction: Transaction): TransactionHash
|
||||
proc eth_sendRawTransaction(data: seq[byte]): TransactionHash
|
||||
proc eth_getTransactionReceipt(hash: TransactionHash): ?TransactionReceipt
|
||||
proc eth_sign(account: Address, message: seq[byte]): seq[byte]
|
||||
proc eth_subscribe(name: string, filter: EventFilter): JsonNode
|
||||
proc eth_subscribe(name: string): JsonNode
|
||||
proc eth_unsubscribe(id: JsonNode): bool
|
||||
|
|
|
@ -28,7 +28,7 @@ for url in ["ws://localhost:8545", "http://localhost:8545"]:
|
|||
|
||||
test "sends raw messages to the provider":
|
||||
let response = await provider.send("evm_mine")
|
||||
check response == %"0x0"
|
||||
check response == %"0"
|
||||
|
||||
test "returns block number":
|
||||
let blocknumber1 = await provider.getBlockNumber()
|
||||
|
|
|
@ -2,7 +2,7 @@ require("hardhat-deploy")
|
|||
require("hardhat-deploy-ethers")
|
||||
|
||||
module.exports = {
|
||||
solidity: "0.8.11",
|
||||
solidity: "0.8.24",
|
||||
namedAccounts: {
|
||||
deployer: { default: 0 }
|
||||
}
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -2,10 +2,10 @@
|
|||
"name": "hardhat-project",
|
||||
"devDependencies": {
|
||||
"@openzeppelin/contracts": "^4.4.2",
|
||||
"ethers": "^5.5.3",
|
||||
"hardhat": "^2.8.3",
|
||||
"hardhat-deploy": "^0.9.24",
|
||||
"hardhat-deploy-ethers": "^0.3.0-beta.13"
|
||||
"ethers": "^6.11.1",
|
||||
"hardhat": "^2.22.1",
|
||||
"hardhat-deploy": "^0.11.34",
|
||||
"hardhat-deploy-ethers": "^0.4.1"
|
||||
},
|
||||
"scripts": {
|
||||
"start": "hardhat node --export 'deployment.json'"
|
||||
|
|
Loading…
Reference in New Issue