Skip to content

Commit 9a0f0fa

Browse files
committed
fix: new rpc08 methods do not work
1 parent 960981c commit 9a0f0fa

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/provider/rpc.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -663,9 +663,9 @@ export class RpcProvider implements ProviderInterface {
663663
/**
664664
* Given an l1 tx hash, returns the associated l1_handler tx hashes and statuses for all L1 -> L2 messages sent by the l1 transaction, ordered by the l1 tx sending order
665665
*/
666-
public getL1MessagesStatus(transactionHash: BigNumberish) {
666+
public async getL1MessagesStatus(transactionHash: BigNumberish): Promise<RPC.L1L2MessagesStatus> {
667667
if (this.channel instanceof RPC08.RpcChannel) {
668-
this.channel.getMessagesStatus(transactionHash);
668+
return this.channel.getMessagesStatus(transactionHash);
669669
}
670670

671671
throw new LibraryError('Unsupported method for RPC version');
@@ -674,14 +674,14 @@ export class RpcProvider implements ProviderInterface {
674674
/**
675675
* Get merkle paths in one of the state tries: global state, classes, individual contract
676676
*/
677-
public getStorageProof(
677+
public async getStorageProof(
678678
classHashes: BigNumberish[],
679679
contractAddresses: BigNumberish[],
680680
contractsStorageKeys: RPC.CONTRACT_STORAGE_KEYS[],
681681
blockIdentifier?: BlockIdentifier
682-
) {
682+
): Promise<RPC.StorageProof> {
683683
if (this.channel instanceof RPC08.RpcChannel) {
684-
this.channel.getStorageProof(
684+
return this.channel.getStorageProof(
685685
classHashes,
686686
contractAddresses,
687687
contractsStorageKeys,
@@ -695,9 +695,9 @@ export class RpcProvider implements ProviderInterface {
695695
/**
696696
* Get the contract class definition in the given block associated with the given hash
697697
*/
698-
public getCompiledCasm(classHash: BigNumberish) {
698+
public async getCompiledCasm(classHash: BigNumberish): Promise<RPC.CASM_COMPILED_CONTRACT_CLASS> {
699699
if (this.channel instanceof RPC08.RpcChannel) {
700-
this.channel.getCompiledCasm(classHash);
700+
return this.channel.getCompiledCasm(classHash);
701701
}
702702

703703
throw new LibraryError('Unsupported method for RPC version');

0 commit comments

Comments
 (0)