Skip to content

Commit f611fd4

Browse files
Use anchor v0.4.1 (#2)
1 parent 572615b commit f611fd4

File tree

4 files changed

+67
-54
lines changed

4 files changed

+67
-54
lines changed

.travis.yml

+10-5
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,21 @@
11
dist: bionic
22
language: rust
33
rust:
4-
- nightly
4+
- stable
55
env:
6-
- NODE_VERSION="14.7.0"
6+
global:
7+
- NODE_VERSION="v14.7.0"
8+
- SOLANA_VERSION="v1.6.3"
9+
- ANCHOR_VERSION="v0.4.1"
710

811
before_deploy:
912
- anchor build --verifiable
1013
- echo "### SHA256 Checksums" > release_notes.md
1114
- sha256sum target/deploy/multisig.so > binary.txt
1215
- sha256sum target/idl/multisig.json > idl.txt
1316
- cat *.txt >> release_notes.md
17+
- echo "" >> release_notes.md
18+
- echo "Built with Anchor [${ANCHOR_VERSION}](https://github.com/project-serum/anchor/releases/tag/${ANCHOR_VERSION})." >> release_notes.md
1419

1520
deploy:
1621
provider: releases
@@ -31,11 +36,11 @@ _defaults: &defaults
3136
- npm install -g mocha
3237
- npm install -g @project-serum/anchor
3338
- sudo apt-get install -y pkg-config build-essential libudev-dev
34-
- sh -c "$(curl -sSfL https://release.solana.com/v1.5.5/install)"
39+
- sh -c "$(curl -sSfL https://release.solana.com/${SOLANA_VERSION}/install)"
3540
- export PATH="/home/travis/.local/share/solana/install/active_release/bin:$PATH"
36-
- export NODE_PATH="/home/travis/.nvm/versions/node/v$NODE_VERSION/lib/node_modules/:$NODE_PATH"
41+
- export NODE_PATH="/home/travis/.nvm/versions/node/${NODE_VERSION}/lib/node_modules/:${NODE_PATH}"
3742
- yes | solana-keygen new
38-
- cargo install --git https://github.com/project-serum/anchor anchor-cli --locked
43+
- cargo install --git https://github.com/project-serum/anchor --tag ${ANCHOR_VERSION} anchor-cli --locked
3944

4045
jobs:
4146
include:

Cargo.lock

+56-46
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

programs/multisig/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@ cpi = ["no-entrypoint"]
1515
default = []
1616

1717
[dependencies]
18-
anchor-lang = "0.3.0"
18+
anchor-lang = "0.4.1"

programs/multisig/src/lib.rs

-2
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@
1717
//! the `execute_transaction`, once enough (i.e. `threhsold`) of the owners have
1818
//! signed.
1919
20-
#![feature(proc_macro_hygiene)]
21-
2220
use anchor_lang::prelude::*;
2321
use anchor_lang::solana_program;
2422
use anchor_lang::solana_program::instruction::Instruction;

0 commit comments

Comments
 (0)