Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: use proper vm version in Ceres #1874

Merged
merged 2 commits into from
Aug 23, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
version: '3'
services:
node:
image: aeternity/aeternity:v6.8.1
image: aeternity/aeternity:v6.11.0
hostname: node
ports: ["3013:3013", "3113:3113", "3014:3014", "3114:3114"]
volumes:
Expand Down
2 changes: 1 addition & 1 deletion docker/aeternity_node_mean16.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ chain:
persist: false
hard_forks:
"1": 0
"6": 1
"5": 1
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Otherwise tests won't work 🤷‍♀️

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

any idea how to isolate the tests? 🤔

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

After doing complete compatibility with Ceres I will create a separate PR to test sdk with it, like #1808


mining:
autostart: true
Expand Down
1 change: 1 addition & 0 deletions src/tx/builder/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ export enum VmVersion {
Fate = 5,
SophiaImprovementsLima = 6,
Fate2 = 7,
Fate3 = 8,
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/tx/builder/field-types/ct-version.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export const ProtocolToVmAbi = {
},
[ConsensusProtocolVersion.Ceres]: {
'contract-create': {
vmVersion: [VmVersion.Fate2], abiVersion: [AbiVersion.Fate],
vmVersion: [VmVersion.Fate3], abiVersion: [AbiVersion.Fate],
},
'contract-call': {
vmVersion: [], abiVersion: [AbiVersion.Fate],
Expand Down