88 DeployContractResponse ,
99 EstimateFeeResponse ,
1010 GetBlockResponse ,
11+ GetCodeResponse ,
1112 GetTransactionReceiptResponse ,
1213 GetTransactionResponse ,
1314 Invocation ,
@@ -91,7 +92,7 @@ export class RpcProvider implements ProviderInterface {
9192
9293 public async getBlockWithTxHashes (
9394 blockIdentifier : BlockIdentifier = 'pending'
94- ) : Promise < RPC . getBlockWithTxHashesResponse > {
95+ ) : Promise < RPC . GetBlockWithTxHashesResponse > {
9596 const blockIdentifierGetter = new BlockIdentifierClass ( blockIdentifier ) ;
9697 return this . fetchEndpoint ( 'starknet_getBlockWithTxHashes' , [
9798 blockIdentifierGetter . getIdentifier ( ) ,
@@ -100,7 +101,7 @@ export class RpcProvider implements ProviderInterface {
100101
101102 public async getBlockWithTxs (
102103 blockIdentifier : BlockIdentifier = 'pending'
103- ) : Promise < RPC . getBlockWithTxs > {
104+ ) : Promise < RPC . GetBlockWithTxs > {
104105 const blockIdentifierGetter = new BlockIdentifierClass ( blockIdentifier ) ;
105106 return this . fetchEndpoint ( 'starknet_getBlockWithTxs' , [ blockIdentifierGetter . getIdentifier ( ) ] ) ;
106107 }
@@ -236,6 +237,13 @@ export class RpcProvider implements ProviderInterface {
236237 return this . responseParser . parseCallContractResponse ( result ) ;
237238 }
238239
240+ public async getCode (
241+ _contractAddress : string ,
242+ _blockIdentifier ?: BlockIdentifier
243+ ) : Promise < GetCodeResponse > {
244+ throw new Error ( 'RPC 0.1.0 does not implement getCode function' ) ;
245+ }
246+
239247 public async waitForTransaction ( txHash : BigNumberish , retryInterval : number = 8000 ) {
240248 let onchain = false ;
241249 let retries = 100 ;
0 commit comments