Skip to content

Commit

Permalink
chore: test case
Browse files Browse the repository at this point in the history
  • Loading branch information
thinkAfCod committed Mar 9, 2024
1 parent de3f629 commit c29962c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion hildr-node/src/main/java/io/optimism/config/Config.java
Original file line number Diff line number Diff line change
Expand Up @@ -767,7 +767,7 @@ public Tuple2<BigInteger, BigInteger> ecotoneScalars() {
var baseFeeScalar = Numeric.toBigInt(Arrays.copyOfRange(scalars, 28, scalars.length));
return new Tuple2<>(blobBaseFeeScalar, baseFeeScalar);
} else if (versionByte == 1) {
// ecotone version L1 base fee scalar
// Ecotone version L1 base fee scalar
var blobBaseFeeScalar = Numeric.toBigInt(Arrays.copyOfRange(scalars, 24, 28));
var baseFeeScalar = Numeric.toBigInt(Arrays.copyOfRange(scalars, 28, scalars.length));
return new Tuple2<>(blobBaseFeeScalar, baseFeeScalar);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ void decodeBedrockTxInput() {
"015d8eb900000000000000000000000000000000000000000000000000000000005169650000000000000000000000000000000000000000000000000000000065d62bbc0000000000000000000000000000000000000000000000000000000234deaa21e680e3ec5290b08570531865205fe15ddc5dbac1f55b4156e2444e77f36d97f400000000000000000000000000000000000000000000000000000000000000040000000000000000000000008f23bb38f531600e5d8fddaaec41f13fab46e98c00000000000000000000000000000000000000000000000000000000000000bc00000000000000000000000000000000000000000000000000000000000a6fe0";
Config.SystemConfig systemConfig =
Config.SystemConfig.fromBedrockTxInput("", null, Numeric.hexStringToByteArray(txInput));
Attributes.AttributesDeposited decode = Attributes.AttributesDeposited.decode(txInput);
assertEquals(new BigInteger("188"), systemConfig.l1FeeOverhead());
assertEquals(new BigInteger("684000"), systemConfig.l1FeeScalar());
assertEquals("0x8f23bb38f531600e5d8fddaaec41f13fab46e98c", systemConfig.batchSender());
Expand Down

0 comments on commit c29962c

Please sign in to comment.