Reset resets the script so it has no content.
()
| 284 | |
| 285 | // Reset resets the script so it has no content. |
| 286 | func (b *ScriptBuilder) Reset() *ScriptBuilder { |
| 287 | b.script = b.script[0:0] |
| 288 | b.err = nil |
| 289 | return b |
| 290 | } |
| 291 | |
| 292 | // Script returns the currently built script. When any errors occurred while |
| 293 | // building the script, the script will be returned up the point of the first |
no outgoing calls