@Override
  public void setCode(final Bytes code) {
    if (immutable) {
      throw new ModificationNotAllowedException();
    }
    this.code = code;
    codeHash = Suppliers.memoize(() -> this.code == null ? Hash.EMPTY : Hash.hash(this.code));
  }
Instantiates a new Simple account.

@param parent the parent
@param address the address
@param nonce the nonce
@param balance the balance
@param code the code
evm/src/main/java/org/hyperledger/besu/evm/fluent/SimpleAccount.java