Deploy a contract to the known address

SashaZezulinskySashaZezulinsky Stockholm, SwedenMember Posts: 1
Hi guys,

How is it possible to deploy a contract to the predefined address?
I want to deploy a contract only once and reuse it each time a client opens a new browser session.

Example:
var greeter = greeterContract.new({from:web3.eth.accounts[0], data: greeterCompiled.greeter.code, gas: 300000});

But I want:
var greeterAddress = "0xbdb0b1129e18b3672c60f1365edec0cb16bf5880";
var greeter = greeterContract.new({from:web3.eth.accounts[0], to: greeterAddress, data: greeterCompiled.greeter.code, gas: 300000});

Thanks
Sign In or Register to comment.