Skip to content

Commit

Permalink
Make blockId optional in getStorageProof
Browse files Browse the repository at this point in the history
  • Loading branch information
franciszekjob committed Oct 28, 2024
1 parent f758824 commit 18a907a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/Starknet/Network/StarknetRequest.swift
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ public enum RequestBuilder {
return StarknetRequest(method: .getEvents, params: .getEvents(params))
}

public static func getStorageProof(blockId: StarknetBlockId, classHashes: [Felt]?, contractAddresses: [Felt]?, contractsStorageKeys: [ContractStorageKeys]?) -> StarknetRequest<StarknetGetStorageProofResponse> {
public static func getStorageProof(blockId: StarknetBlockId?, classHashes: [Felt]?, contractAddresses: [Felt]?, contractsStorageKeys: [ContractStorageKeys]?) -> StarknetRequest<StarknetGetStorageProofResponse> {
let params = GetStorageProofParams(blockId: blockId, classHashes: classHashes, contractAddresses: contractAddresses, contractsStorageKeys: contractsStorageKeys)

return StarknetRequest(method: .getStorageProof, params: .getStorageProof(params))
Expand Down

0 comments on commit 18a907a

Please sign in to comment.