Inputs have a scriptSig field which was named `script` in the code examples. Probably better to rename them all to `script_sig`.