Skip to content

Commit

Permalink
Release 2.10.1 (#806)
Browse files Browse the repository at this point in the history
### Fixes

- Updated sputnikvm dependency with bugfix in the `shanghai`
implementation @mandreyel. #803

---------

Co-authored-by: mandreyel <[email protected]>
Co-authored-by: Oleksandr Anyshchenko <[email protected]>
Co-authored-by: Michael Birch <[email protected]>
  • Loading branch information
4 people authored Jul 27, 2023
1 parent 395585d commit 6c3d46e
Show file tree
Hide file tree
Showing 6 changed files with 60 additions and 18 deletions.
28 changes: 18 additions & 10 deletions .github/workflows/builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ on:
- '[0-9]+.[0-9]+.[0-9]+'
name: Build
jobs:
release:
name: Release
build:
name: Build contracts
runs-on: [self-hosted, heavy]
strategy:
matrix:
Expand All @@ -17,25 +17,33 @@ jobs:
git checkout -f $(git -c user.name=x -c user.email=x@x commit-tree $(git hash-object -t tree /dev/null) < /dev/null) || :
- name: Clone the repository
uses: actions/checkout@v3
- run: cargo make --profile ${{ matrix.profile }} build-docker
- run: cargo make --profile ${{ matrix.profile }} build-xcc-docker
- run: ls -lH bin/aurora-${{ matrix.profile }}.wasm
- run: ls -lH bin/aurora-factory-${{ matrix.profile }}.wasm
- name: Upload the aurora-${{ matrix.profile }}.wasm artifact
- run: |
cargo make --profile ${{ matrix.profile }} build-docker
cargo make --profile ${{ matrix.profile }} build-xcc-docker
- run: ls -lH bin/aurora-*${{ matrix.profile }}.wasm
- name: Upload aurora-${{ matrix.profile }}.wasm artifact
uses: actions/upload-artifact@v2
with:
name: aurora-${{ matrix.profile }}.wasm
path: bin/aurora-${{ matrix.profile }}.wasm
- name: Upload the aurora-factory-${{ matrix.profile }}.wasm artifact
- name: Upload aurora-factory-${{ matrix.profile }}.wasm artifact
uses: actions/upload-artifact@v2
with:
name: aurora-factory-${{ matrix.profile }}.wasm
path: bin/aurora-factory-${{ matrix.profile }}.wasm
- name: Update the latest releases

publish:
name: Publish contracts
runs-on: [self-hosted, heavy]
needs: build
steps:
- name: Download artifacts
uses: actions/download-artifact@v2
- name: Publish contracts for ${{ github.ref }} release
uses: svenstaro/upload-release-action@v2
with:
tag: ${{ github.ref }}
file: bin/aurora*-${{ matrix.profile }}.wasm
file: aurora*.wasm
overwrite: true
repo_token: ${{ secrets.GITHUB_TOKEN }}
file_glob: true
Expand Down
11 changes: 10 additions & 1 deletion CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [2.10.1] 2023-07-27

### Fixes

- Updated sputnikvm dependency with bugfix in the `shanghai` implementation [@mandreyel]. ([#803])

[#803]: https://github.com/aurora-is-near/aurora-engine/pull/803

## [2.10.0] 2023-07-20

### Changes
Expand Down Expand Up @@ -441,7 +449,8 @@ struct SubmitResult {

## [1.0.0] - 2021-05-12

[Unreleased]: https://github.com/aurora-is-near/aurora-engine/compare/2.10.0...develop
[Unreleased]: https://github.com/aurora-is-near/aurora-engine/compare/2.10.1...develop
[2.10.1]: https://github.com/aurora-is-near/aurora-engine/compare/2.10.0...2.10.1
[2.10.0]: https://github.com/aurora-is-near/aurora-engine/compare/2.9.3...2.10.0
[2.9.3]: https://github.com/aurora-is-near/aurora-engine/compare/2.9.2...2.9.3
[2.9.2]: https://github.com/aurora-is-near/aurora-engine/compare/2.9.1...2.9.2
Expand Down
10 changes: 5 additions & 5 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.10.0
2.10.1
25 changes: 25 additions & 0 deletions engine-tests/src/tests/sanity.rs
Original file line number Diff line number Diff line change
Expand Up @@ -694,6 +694,31 @@ fn test_eth_transfer_incorrect_nonce() {
utils::validate_address_balance_and_nonce(&runner, dest_address, Wei::zero(), 0.into());
}

#[test]
fn test_tx_support_shanghai() {
let (mut runner, mut source_account, _) = initialize_transfer();
// Encoded EVM transaction with parameter: `evmVersion: 'shanghai'`.
let data = "6080604052348015600e575f80fd5b50607480601a5f395ff3fe6080604052348015600e575\
f80fd5b50600436106026575f3560e01c8063919840ad14602a575b5f80fd5b600560405190815260200160\
405180910390f3fea2646970667358221220cb01b9b9c75e5cd079a1980af2fe4397d2029888d12737d74cb\
bc10e0de65bd364736f6c63430008150033";

let result = runner
.submit_with_signer(&mut source_account, |nonce| {
aurora_engine_transactions::legacy::TransactionLegacy {
nonce,
gas_price: 0.into(),
gas_limit: u64::MAX.into(),
to: None,
value: Wei::zero(),
data: hex::decode(data).unwrap(),
}
})
.expect("Should be able to execute EVM bytecode including PUSH0");

assert!(result.status.is_ok());
}

#[test]
fn test_eth_transfer_not_enough_gas() {
let (mut runner, mut source_account, dest_address) = initialize_transfer();
Expand Down
2 changes: 1 addition & 1 deletion engine/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "aurora-engine"
version = "2.10.0"
version = "2.10.1"
authors.workspace = true
edition.workspace = true
homepage.workspace = true
Expand Down

0 comments on commit 6c3d46e

Please sign in to comment.