Corrected contract addresses
This commit is contained in:
parent
0936e5ccf5
commit
b3da104e56
@ -222,7 +222,7 @@ func (block *Block) Undo() {
|
|||||||
func (block *Block) MakeContract(tx *Transaction) {
|
func (block *Block) MakeContract(tx *Transaction) {
|
||||||
// Create contract if there's no recipient
|
// Create contract if there's no recipient
|
||||||
if tx.IsContract() {
|
if tx.IsContract() {
|
||||||
addr := tx.Hash()
|
addr := tx.Hash()[12:]
|
||||||
|
|
||||||
value := tx.Value
|
value := tx.Value
|
||||||
contract := NewContract(value, []byte(""))
|
contract := NewContract(value, []byte(""))
|
||||||
|
Loading…
Reference in New Issue
Block a user