templates: Do not deploy empty code string on account creation
@@ -34,9 +34,11 @@ transaction(publicKeys: [[UInt8]], code: [UInt8]) {
acct.addPublicKey(key)
}
+ if code.length > 0 {
acct.setCode(code)
}
}
+}
`
// CreateAccount generates a transactions that creates a new account.
