NethermindEth/starknet.go

Specific return type for BlockWithTxs and BlockWithTxHashes methods

開放

#355 建立於 2023年9月22日

 (1 則留言) (0 個反應) (0 位負責人)Go (140 個分叉)auto 404
help wanted

倉庫指標

星標
 (177 顆星)
PR 合併指標
 (30 天內沒有已合併 PR)

描述

In https://github.com/NethermindEth/starknet.go/pull/354 a new type for blocks with only transaction hashes was created as requested on #347.

However, BlockWithTxs and BlockWithTxHashes methods still have as return type interface{} as these can return either a Block or a Pending Block in both cases. The idea is to replace interface{} with an specific type and do something similar as in TransactionByHash method (see here) with adaptTransaction

貢獻者指南