Skip to content

Commit

Permalink
support tx v3 (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
notV4l authored Nov 18, 2024
1 parent 3fc0229 commit efbc9db
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/vrf_provider/vrf_provider_component.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,9 @@ pub mod VrfProviderComponent {
};

// Always return 0 during fee estimation to avoid leaking vrf info.
if tx_info.max_fee == 0 {
if tx_info.max_fee == 0
&& *tx_info.resource_bounds.at(0).max_amount == 0
&& *tx_info.resource_bounds.at(1).max_amount == 0 {
// simulate consumed
self.VrfProvider_random.write(seed, 0);
return 0;
Expand Down

0 comments on commit efbc9db

Please sign in to comment.