setCode method
Add smart contract code to the transaction @param {String} code Smart contract code
Implementation
Transaction setCode(String code) {
if (!(code is String)) {
throw "'code' must be a string";
}
this.data!.code = code;
return this;
}