|
13 | 13 | ConstantinopleVM,
|
14 | 14 | PetersburgVM,
|
15 | 15 | IstanbulVM,
|
| 16 | + MuirGlacierVM, |
| 17 | + BerlinVM, |
16 | 18 | )
|
17 | 19 | from eth._utils.address import force_bytes_to_address
|
18 | 20 |
|
|
608 | 610 | 22272,
|
609 | 611 | id='sha3 precompile 32 bytes 1000_tolerance binary pending for IstanbulVM',
|
610 | 612 | ),
|
| 613 | + pytest.param( |
| 614 | + b'', |
| 615 | + None, |
| 616 | + ADDR_1010, |
| 617 | + True, |
| 618 | + MuirGlacierVM, |
| 619 | + 21000, |
| 620 | + id='simple default pending for MuirGlacierVM', |
| 621 | + ), |
| 622 | + pytest.param( |
| 623 | + b'', |
| 624 | + None, |
| 625 | + ADDR_1010, |
| 626 | + False, |
| 627 | + MuirGlacierVM, |
| 628 | + 21000, |
| 629 | + id='simple default for MuirGlacierVM', |
| 630 | + ), |
| 631 | + pytest.param( |
| 632 | + b'\xff' * 10, |
| 633 | + None, |
| 634 | + ADDR_1010, |
| 635 | + True, |
| 636 | + MuirGlacierVM, |
| 637 | + 21160, |
| 638 | + id='10 bytes default pending for MuirGlacierVM', |
| 639 | + ), |
| 640 | + pytest.param( |
| 641 | + b'\xff' * 10, |
| 642 | + None, |
| 643 | + ADDR_1010, |
| 644 | + False, |
| 645 | + MuirGlacierVM, |
| 646 | + 21160, |
| 647 | + id='10 bytes default for MuirGlacierVM', |
| 648 | + ), |
| 649 | + pytest.param( |
| 650 | + b'\xff' * 32, |
| 651 | + None, |
| 652 | + ADDRESS_2, |
| 653 | + True, |
| 654 | + MuirGlacierVM, |
| 655 | + 33675, |
| 656 | + id='sha3 precompile 32 bytes default pending for MuirGlacierVM', |
| 657 | + ), |
| 658 | + pytest.param( |
| 659 | + b'\xff' * 32, |
| 660 | + None, |
| 661 | + ADDRESS_2, |
| 662 | + False, |
| 663 | + MuirGlacierVM, |
| 664 | + 33687, |
| 665 | + id='sha3 precompile 32 bytes default for MuirGlacierVM', |
| 666 | + ), |
| 667 | + pytest.param( |
| 668 | + b'\xff' * 320, |
| 669 | + None, |
| 670 | + ADDRESS_2, |
| 671 | + True, |
| 672 | + MuirGlacierVM, |
| 673 | + 38265, |
| 674 | + id='sha3 precompile 320 bytes default pending for MuirGlacierVM', |
| 675 | + ), |
| 676 | + pytest.param( |
| 677 | + b'\xff' * 32, |
| 678 | + binary_gas_search_1000_tolerance, |
| 679 | + ADDRESS_2, |
| 680 | + True, |
| 681 | + MuirGlacierVM, |
| 682 | + 22272, |
| 683 | + id='sha3 precompile 32 bytes 1000_tolerance binary pending for MuirGlacierVM', |
| 684 | + ), |
| 685 | + pytest.param( |
| 686 | + b'', |
| 687 | + None, |
| 688 | + ADDR_1010, |
| 689 | + True, |
| 690 | + BerlinVM, |
| 691 | + 21000, |
| 692 | + id='simple default pending for BerlinVM', |
| 693 | + ), |
| 694 | + pytest.param( |
| 695 | + b'', |
| 696 | + None, |
| 697 | + ADDR_1010, |
| 698 | + False, |
| 699 | + BerlinVM, |
| 700 | + 21000, |
| 701 | + id='simple default for BerlinVM', |
| 702 | + ), |
| 703 | + pytest.param( |
| 704 | + b'\xff' * 10, |
| 705 | + None, |
| 706 | + ADDR_1010, |
| 707 | + True, |
| 708 | + BerlinVM, |
| 709 | + 21160, |
| 710 | + id='10 bytes default pending for BerlinVM', |
| 711 | + ), |
| 712 | + pytest.param( |
| 713 | + b'\xff' * 10, |
| 714 | + None, |
| 715 | + ADDR_1010, |
| 716 | + False, |
| 717 | + BerlinVM, |
| 718 | + 21160, |
| 719 | + id='10 bytes default for BerlinVM', |
| 720 | + ), |
| 721 | + pytest.param( |
| 722 | + b'\xff' * 32, |
| 723 | + None, |
| 724 | + ADDRESS_2, |
| 725 | + True, |
| 726 | + BerlinVM, |
| 727 | + 33675, |
| 728 | + id='sha3 precompile 32 bytes default pending for BerlinVM', |
| 729 | + ), |
| 730 | + pytest.param( |
| 731 | + b'\xff' * 32, |
| 732 | + None, |
| 733 | + ADDRESS_2, |
| 734 | + False, |
| 735 | + BerlinVM, |
| 736 | + 33687, |
| 737 | + id='sha3 precompile 32 bytes default for BerlinVM', |
| 738 | + ), |
| 739 | + pytest.param( |
| 740 | + b'\xff' * 320, |
| 741 | + None, |
| 742 | + ADDRESS_2, |
| 743 | + True, |
| 744 | + BerlinVM, |
| 745 | + 38265, |
| 746 | + id='sha3 precompile 320 bytes default pending for BerlinVM', |
| 747 | + ), |
| 748 | + pytest.param( |
| 749 | + b'\xff' * 32, |
| 750 | + binary_gas_search_1000_tolerance, |
| 751 | + ADDRESS_2, |
| 752 | + True, |
| 753 | + BerlinVM, |
| 754 | + 22272, |
| 755 | + id='sha3 precompile 32 bytes 1000_tolerance binary pending for BerlinVM', |
| 756 | + ), |
611 | 757 | ),
|
612 | 758 | )
|
613 | 759 | def test_estimate_gas(
|
@@ -667,7 +813,8 @@ def test_estimate_gas(
|
667 | 813 | (ConstantinopleVM, 722760),
|
668 | 814 | (PetersburgVM, 722760),
|
669 | 815 | (IstanbulVM, 186120),
|
670 |
| -
|
| 816 | + (MuirGlacierVM, 186120), |
| 817 | + (BerlinVM, 186120), |
671 | 818 | )
|
672 | 819 | )
|
673 | 820 | def test_estimate_gas_on_full_block(
|
|
0 commit comments