Skip to content

Commit

Permalink
Rename field to be more descriptive
Browse files Browse the repository at this point in the history
  • Loading branch information
Shaptic committed Dec 15, 2023
1 parent 1aef2cd commit 2882fba
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/soroban/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export namespace Server {
}

/** Describes additional resource leeways for transaction simulation. */
export interface SimulationResources {
export interface ResourceLeeway {
cpuInstructions: number;
}

Expand Down Expand Up @@ -493,15 +493,15 @@ export class Server {
*/
public async simulateTransaction(
tx: Transaction | FeeBumpTransaction,
addlResources?: Server.SimulationResources
addlResources?: Server.ResourceLeeway
): Promise<Api.SimulateTransactionResponse> {
return this._simulateTransaction(tx, addlResources)
.then(parseRawSimulation);
}

public async _simulateTransaction(
transaction: Transaction | FeeBumpTransaction,
addlResources?: Server.SimulationResources
addlResources?: Server.ResourceLeeway
): Promise<Api.RawSimulateTransactionResponse> {
return jsonrpc.postObject(
this.serverURL.toString(),
Expand Down

0 comments on commit 2882fba

Please sign in to comment.