We have no dry-run unittests. See https://github.com/AntelopeIO/leap/pull/1081 for an example of an issue that slipped through. Create corresponding dry-run unittests similar to read_only_trx_tests.cpp
} else if ( type == transaction_metadata::trx_type::dry_run ) {
// sign with some irrelevant sigs which should be allowed
trx.sign(get_private_key("invalid"_n, "active"), control->get_chain_id());
As much as possible normal write input transaction and dry-run transactions should produce same/similar errors for similar issues. Specifically lack of authorization should generate same error if possible.
We have no dry-run unittests. See https://github.com/AntelopeIO/leap/pull/1081 for an example of an issue that slipped through. Create corresponding dry-run unittests similar to
read_only_trx_tests.cpp
Include this test:
where
send_db_api_transaction
has