Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
tvorogme committed May 10, 2024
1 parent b3071dd commit db11e83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tvm-python/PyKeys.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ py::bytes PyPrivateKey::sign(const char *data) {
throw std::invalid_argument(R.move_as_error().to_string());
}

return R.move_as_ok().as_slice().data();
return py::bytes(std::move(R.move_as_ok().as_slice().data()));
};

PyPublicKey PyPrivateKey::get_public_key() {
Expand Down

0 comments on commit db11e83

Please sign in to comment.