Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix stylecheck for UInt256 #226

Merged
merged 1 commit into from
Oct 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions tests/private/ethcallsigs.nim
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ proc eth_call(call: EthCall, quantityTag: string): UInt256
proc eth_estimateGas(call: EthCall, quantityTag: string): UInt256
proc eth_getBlockByHash(data: array[32, byte], fullTransactions: bool): BlockObject
proc eth_getBlockByNumber(quantityTag: string, fullTransactions: bool): BlockObject
proc eth_getTransactionByHash(data: Uint256): TransactionObject
proc eth_getTransactionByHash(data: UInt256): TransactionObject
proc eth_getTransactionByBlockHashAndIndex(data: UInt256, quantity: int): TransactionObject
proc eth_getTransactionByBlockNumberAndIndex(quantityTag: string, quantity: int): TransactionObject
proc eth_getTransactionReceipt(data: UInt256): ReceiptObject
Expand All @@ -45,8 +45,8 @@ proc eth_newBlockFilter(): int
proc eth_newPendingTransactionFilter(): int
proc eth_uninstallFilter(filterId: int): bool
proc eth_getWork(): seq[UInt256]
proc eth_submitWork(nonce: int64, powHash: Uint256, mixDigest: Uint256): bool
proc eth_submitHashrate(hashRate: UInt256, id: Uint256): bool
proc eth_submitWork(nonce: int64, powHash: UInt256, mixDigest: UInt256): bool
proc eth_submitHashrate(hashRate: UInt256, id: UInt256): bool
proc shh_post(): string
proc shh_newIdentity(): array[60, byte]
proc shh_hasIdentity(identity: array[60, byte]): bool
Expand Down
6 changes: 3 additions & 3 deletions tests/private/ethprocs.nim
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ proc addEthRpcs*(server: RpcServer) =
## Returns BlockObject or nil when no block was found.
discard

server.rpc("eth_getTransactionByHash") do(data: Uint256) -> TransactionObject:
server.rpc("eth_getTransactionByHash") do(data: UInt256) -> TransactionObject:
## Returns the information about a transaction requested by transaction hash.
##
## data: hash of a transaction.
Expand Down Expand Up @@ -380,7 +380,7 @@ proc addEthRpcs*(server: RpcServer) =
## DATA, 32 Bytes - the boundary condition ("target"), 2^256 / difficulty.
result = @[]

server.rpc("eth_submitWork") do(nonce: int64, powHash: Uint256, mixDigest: Uint256) -> bool:
server.rpc("eth_submitWork") do(nonce: int64, powHash: UInt256, mixDigest: UInt256) -> bool:
## Used for submitting a proof-of-work solution.
##
## nonce: the nonce found.
Expand All @@ -389,7 +389,7 @@ proc addEthRpcs*(server: RpcServer) =
## Returns true if the provided solution is valid, otherwise false.
discard

server.rpc("eth_submitHashrate") do(hashRate: UInt256, id: Uint256) -> bool:
server.rpc("eth_submitHashrate") do(hashRate: UInt256, id: UInt256) -> bool:
## Used for submitting mining hashrate.
##
## hashRate: a hexadecimal string representation (32 bytes) of the hash rate.
Expand Down
2 changes: 1 addition & 1 deletion tests/private/ethtypes.nim
Original file line number Diff line number Diff line change
Expand Up @@ -122,4 +122,4 @@ type
sent*: int # integer of the unix timestamp when the message was sent.
topics*: seq[UInt256] # list of DATA topics the message contained.
payload*: string # TODO: Correct type? the payload of the message.
workProved*: int # integer of the work this message required before it was send (?).
workProved*: int # integer of the work this message required before it was send (?).