diff --git a/src/cc/payments.cpp b/src/cc/payments.cpp index c4f869e34..501d48b5a 100644 --- a/src/cc/payments.cpp +++ b/src/cc/payments.cpp @@ -337,7 +337,7 @@ UniValue PaymentsRelease(struct CCcontract_info *cp,char *jsonstr) checkallocations += allocation; if ( opret.size() > 0 ) { - scriptPubKey.resize(opret.size()); + onlyopret.resize(opret.size()); memcpy(&onlyopret[0],&opret[0],opret.size()); numoprets++; }