Skip to content

Commit

Permalink
fix: revert the change and use GITHUB_SHA for commit tag (#220)
Browse files Browse the repository at this point in the history
* fix: revert the change and use GITHUB_SHA for commit tag

* fix: accommodate recent besu lib version upgrade
  • Loading branch information
jonesho authored Oct 22, 2024
1 parent 7a4d510 commit cd58916
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/reuse-store-image-name-and-tags.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
- name: Compute version tags
id: step2
run: |
echo COMMIT_TAG=$(git rev-parse --short "${{ github.event.pull_request.head.sha }}") >> $GITHUB_OUTPUT
echo COMMIT_TAG=$(git rev-parse --short "$GITHUB_SHA") >> $GITHUB_OUTPUT
echo LAST_COMMIT_TAG=$(git rev-parse --short "${{ env.EVENT_BEFORE }}") >> $GITHUB_OUTPUT
echo DEVELOP_TAG=develop >> $GITHUB_OUTPUT
echo COMMON_ANCESTOR_TAG=$(git rev-parse --short "${{ env.COMMON_ANCESTOR }}") >> $GITHUB_OUTPUT
Expand Down
5 changes: 1 addition & 4 deletions transaction-exclusion-api/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,8 @@ dependencies {
implementation "com.fasterxml.jackson.core:jackson-databind:${libs.versions.jackson.get()}"
implementation "com.fasterxml.jackson.module:jackson-module-kotlin:${libs.versions.jackson.get()}"

implementation "org.hyperledger.besu:besu-datatypes:${libs.versions.besu.get()}"
implementation "org.hyperledger.besu:evm:${libs.versions.besu.get()}"
implementation "org.hyperledger.besu.internal:rlp:${libs.versions.besu.get()}"
implementation "org.hyperledger.besu.internal:core:${libs.versions.besu.get()}"
implementation "org.hyperledger.besu.internal:crypto:${libs.versions.besu.get()}"
implementation "org.hyperledger.besu:plugin-api:${libs.versions.besu.get()}"

api("io.netty:netty-transport-native-epoll:${libs.versions.netty.get()}:linux-x86_64") {
because "It enables native transport for Linux."
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import net.consensys.linea.transactionexclusion.RejectedTransaction
import net.consensys.linea.transactionexclusion.TransactionInfo
import net.consensys.linea.transactionexclusion.dto.ModuleOverflowJsonDto
import org.apache.tuweni.bytes.Bytes
import org.hyperledger.besu.ethereum.core.encoding.EncodingContext
import org.hyperledger.besu.ethereum.core.encoding.TransactionDecoder
import java.time.format.DateTimeFormatter
import java.time.format.DateTimeParseException
Expand All @@ -32,7 +33,8 @@ object ArgumentParser {
fun getTransactionInfoFromRLP(rlp: ByteArray): TransactionInfo {
try {
return TransactionDecoder.decodeOpaqueBytes(
Bytes.wrap(rlp)
Bytes.wrap(rlp),
EncodingContext.BLOCK_BODY
).run {
TransactionInfo(
hash = this.hash.toArray(),
Expand Down

0 comments on commit cd58916

Please sign in to comment.