Skip to content

Commit

Permalink
Merge pull request #103 from renproject/feat/upgrade-ffi
Browse files Browse the repository at this point in the history
  • Loading branch information
roynalnaruto authored Jun 12, 2021
2 parents 3a0bc6f + e83619b commit a0b3a57
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 9 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ jobs:
runs-on: ubuntu-latest
env:
FILECOIN_FFI_COMMIT: 8b97bd8230b77bd32f4f27e4766a6d8a03b4e801
SOLANA_FFI_COMMIT: 1d5f4405dd2fb89c96cde28db33051a6e992d607
SOLANA_FFI_COMMIT: d4c670dd402894b7e98a41bccf35d2d5066c573f
steps:
- uses: actions/setup-go@v2
with:
Expand Down Expand Up @@ -117,7 +117,7 @@ jobs:
runs-on: ubuntu-latest
env:
FILECOIN_FFI_COMMIT: 8b97bd8230b77bd32f4f27e4766a6d8a03b4e801
SOLANA_FFI_COMMIT: 1d5f4405dd2fb89c96cde28db33051a6e992d607
SOLANA_FFI_COMMIT: d4c670dd402894b7e98a41bccf35d2d5066c573f
steps:
- name: Set up Go 1.13
uses: actions/setup-go@v1
Expand Down Expand Up @@ -242,7 +242,7 @@ jobs:
runs-on: ubuntu-latest
env:
FILECOIN_FFI_COMMIT: 8b97bd8230b77bd32f4f27e4766a6d8a03b4e801
SOLANA_FFI_COMMIT: 1d5f4405dd2fb89c96cde28db33051a6e992d607
SOLANA_FFI_COMMIT: d4c670dd402894b7e98a41bccf35d2d5066c573f
steps:
- name: Set up Go 1.13
uses: actions/setup-go@v1
Expand Down Expand Up @@ -366,7 +366,7 @@ jobs:
runs-on: ubuntu-latest
env:
FILECOIN_FFI_COMMIT: 8b97bd8230b77bd32f4f27e4766a6d8a03b4e801
SOLANA_FFI_COMMIT: 1d5f4405dd2fb89c96cde28db33051a6e992d607
SOLANA_FFI_COMMIT: d4c670dd402894b7e98a41bccf35d2d5066c573f
steps:
- name: Set up Go 1.13
uses: actions/setup-go@v1
Expand Down Expand Up @@ -490,7 +490,7 @@ jobs:
runs-on: ubuntu-latest
env:
FILECOIN_FFI_COMMIT: 8b97bd8230b77bd32f4f27e4766a6d8a03b4e801
SOLANA_FFI_COMMIT: 1d5f4405dd2fb89c96cde28db33051a6e992d607
SOLANA_FFI_COMMIT: d4c670dd402894b7e98a41bccf35d2d5066c573f
steps:
- name: Set up Go 1.13
uses: actions/setup-go@v1
Expand Down Expand Up @@ -614,7 +614,7 @@ jobs:
runs-on: ubuntu-latest
env:
FILECOIN_FFI_COMMIT: 8b97bd8230b77bd32f4f27e4766a6d8a03b4e801
SOLANA_FFI_COMMIT: 1d5f4405dd2fb89c96cde28db33051a6e992d607
SOLANA_FFI_COMMIT: d4c670dd402894b7e98a41bccf35d2d5066c573f
steps:
- name: Set up Go 1.13
uses: actions/setup-go@v1
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,6 @@ RUN mkdir -p src/github.com/renproject
WORKDIR $GOPATH/src/github.com/renproject
RUN git clone https://github.com/renproject/solana-ffi
WORKDIR $GOPATH/src/github.com/renproject/solana-ffi
RUN git checkout 1d5f4405dd2fb89c96cde28db33051a6e992d607
RUN git checkout d4c670dd402894b7e98a41bccf35d2d5066c573f
RUN make clean && make
RUN go install ./...
2 changes: 1 addition & 1 deletion chain/solana/solana-ffi
3 changes: 2 additions & 1 deletion chain/solana/solana_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@ var _ = Describe("Solana", func() {
// Mint some tokens.
time.Sleep(10 * time.Second)
mintAmount := uint64(1000000000) // 10 tokens.
mintSig := cgo.GatewayMint(keypairPath, solana.DefaultClientRPCURL, renVmSecret, selector, mintAmount)
nilSlice := make([]byte, 32)
mintSig := cgo.GatewayMint(keypairPath, solana.DefaultClientRPCURL, renVmSecret, selector, mintAmount, nilSlice, nilSlice)
logger.Debug("Mint", zap.String("tx signature", string(mintSig)))

// Burn some tokens.
Expand Down

0 comments on commit a0b3a57

Please sign in to comment.