mirror of
https://github.com/status-im/ethereumj-personal.git
synced 2025-02-24 01:18:07 +00:00
Don't store code for empty init return
This commit is contained in:
parent
03e6c7ba5a
commit
729e2822ce
@ -420,7 +420,7 @@ public class BlockchainImpl implements Blockchain {
|
||||
if (initResults) {
|
||||
// Save the code created by init
|
||||
byte[] bodyCode = null;
|
||||
if (result.getHReturn() != null) {
|
||||
if (result.getHReturn() != null && result.getHReturn().array().length > 0) {
|
||||
bodyCode = result.getHReturn().array();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user