Skip to content

Commit

Permalink
register starknet_getMessagesStatus
Browse files Browse the repository at this point in the history
  • Loading branch information
rianhughes committed Oct 23, 2024
1 parent 8020f6a commit a2b3e00
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion blockchain/blockchain.go
Original file line number Diff line number Diff line change
Expand Up @@ -875,7 +875,7 @@ func (b *Blockchain) RevertHead() error {
func (b *Blockchain) GetReverseStateDiff() (*core.StateDiff, error) {
var reverseStateDiff *core.StateDiff
return reverseStateDiff, b.database.View(func(txn db.Transaction) error {
blockNumber, err := chainHeight(txn)
blockNumber, err := ChainHeight(txn)
if err != nil {
return err
}
Expand Down
5 changes: 5 additions & 0 deletions rpc/handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -342,6 +342,11 @@ func (h *Handler) Methods() ([]jsonrpc.Method, string) { //nolint: funlen, dupl
Params: []jsonrpc.Parameter{{Name: "block_id"}},
Handler: h.BlockWithReceipts,
},
{
Name: "starknet_getMessagesStatus",
Params: []jsonrpc.Parameter{{Name: "transaction_hash"}},
Handler: h.GetMessageStatus,
},
}, "/v0_8"
}

Expand Down

0 comments on commit a2b3e00

Please sign in to comment.