File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed
testnet/stacks-node/src/tests/signer Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -815,10 +815,21 @@ impl MultipleMinerTest {
815
815
function_args : & [ clarity:: vm:: Value ] ,
816
816
) -> String {
817
817
let http_origin = self . node_http ( ) ;
818
+ // build a fake tx for getting a rough amount of fee
819
+ let fake_contract_tx = make_contract_call (
820
+ & self . sender_sk ,
821
+ sender_nonce,
822
+ 100 ,
823
+ self . signer_test . running_nodes . conf . burnchain . chain_id ,
824
+ & tests:: to_addr ( & self . sender_sk ) ,
825
+ contract_name,
826
+ function_name,
827
+ function_args,
828
+ ) ;
818
829
let contract_tx = make_contract_call (
819
830
& self . sender_sk ,
820
831
sender_nonce,
821
- self . send_fee ,
832
+ self . send_fee + fake_contract_tx . len ( ) as u64 ,
822
833
self . signer_test . running_nodes . conf . burnchain . chain_id ,
823
834
& tests:: to_addr ( & self . sender_sk ) ,
824
835
contract_name,
You can’t perform that action at this time.
0 commit comments