0xSpaceShard / starknet-rivet

Developer wallet for Starknet
MIT License
7 stars 0 forks source link

BUG: extension must work with every devnet's port #26

Closed qperrot closed 2 months ago

qperrot commented 3 months ago

BUG

Right now I need to modify my front-end Dapp to be able to use it with devnet that is running on another port than 5050, we should be able to use Dapp and devnet running on a different port without doing this

const modifiedDevnet = {
  ...devnet, // Copy all properties from the original devnet object
  rpcUrls: {
    ...devnet.rpcUrls, // Copy all properties from the original rpcUrls object
    public: {
      ...devnet.rpcUrls.public, // Copy all properties from the original public object
      http: ['http://localhost:8081/rpc'] // Modify the http property with the new URL
    }
  }
};