Add Default impl to Script

This commit is contained in:
Andrew Poelstra 2014-08-23 16:20:46 -07:00
parent 6e6da2a756
commit 4ba533514e
1 changed files with 4 additions and 0 deletions

View File

@ -1250,6 +1250,10 @@ impl Script {
} }
} }
impl Default for Script {
fn default() -> Script { Script(ThinVec::new()) }
}
// User-facing serialization // User-facing serialization
impl json::ToJson for Script { impl json::ToJson for Script {
// TODO: put this in a struct alongside an opcode decode // TODO: put this in a struct alongside an opcode decode