Skip to content

Commit

Permalink
fix(tinny): Simplify and centralize RPC URL handling
Browse files Browse the repository at this point in the history
  • Loading branch information
Ansonhkg committed Jun 28, 2024
1 parent 0fb62e3 commit bfe0cac
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions local-tests/setup/tinny-environment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ export class TinnyEnvironment {
this?.testnet?.ContractContext ?? this._contractContext;
this.litNodeClient = new LitNodeClient({
litNetwork: 'custom',
rpcUrl: this.processEnvs.LIT_RPC_URL ?? LIT_RPC.LOCAL_ANVIL,
rpcUrl: this.rpc,
debug: this.processEnvs.DEBUG,
checkNodeAttestation: false, // disable node attestation check for local testing
contractContext: networkContext,
Expand Down Expand Up @@ -432,9 +432,9 @@ export class TinnyEnvironment {
this.contractsClient = new LitContracts({
signer: wallet,
debug: this.processEnvs.DEBUG,
rpc: this.processEnvs.LIT_RPC_URL || LIT_RPC.LOCAL_ANVIL, // anvil rpc
rpc: this.rpc,
customContext: networkContext,
});
});F
} else {
async function _switchWallet() {
// TODO: This wallet should be cached somehwere and reused to create delegation signatures.
Expand Down

0 comments on commit bfe0cac

Please sign in to comment.