Skip to content

Commit

Permalink
Add extended vnft
Browse files Browse the repository at this point in the history
  • Loading branch information
MedovTimur committed Aug 5, 2024
1 parent 943bcc0 commit d4c7643
Show file tree
Hide file tree
Showing 22 changed files with 8,940 additions and 1 deletion.
Binary file modified .DS_Store
Binary file not shown.
36 changes: 36 additions & 0 deletions .github/workflows/contract.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,5 +96,41 @@ jobs:
- name: Run tests
run: cargo test --manifest-path extended-vft/Cargo.toml

extend-vnft:
needs: [vnft-service]
name: ExtendVnft
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
target: wasm32-unknown-unknown
override: true

- name: Install Clippy
run: rustup component add clippy

- name: Install Rustfmt
run: rustup component add rustfmt

- name: Check formatting
run: cargo fmt --all --manifest-path extended-vnft/Cargo.toml -- --check

- name: Run Clippy
run: cargo clippy -r --manifest-path extended-vnft/Cargo.toml -- -D warnings

- name: Prepare environment
run: |
mkdir -p extended-vnft/target/tmp
curl -L https://get.gear.rs/gear-v1.4.2-x86_64-unknown-linux-gnu.tar.xz -o - | tar xJ -C extended-vnft/target/tmp
- name: Run tests
run: cargo test --manifest-path extended-vnft/Cargo.toml


2 changes: 1 addition & 1 deletion extended-vft/app/tests/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ async fn test_grant_role() {
.send_recv(extended_vft_id)
.await;
assert!(res.is_err());
// grant mint role
// grant burner role
client
.grant_burner_role(101.into())
.send_recv(extended_vft_id)
Expand Down
Binary file added extended-vnft/.DS_Store
Binary file not shown.
3 changes: 3 additions & 0 deletions extended-vnft/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/target
./wasm/.binpath
./wasm/.DS_Store
Loading

0 comments on commit d4c7643

Please sign in to comment.