Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions doc-site/docs/tutorials/custom_contracts/cardano.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ edition = "2021"

[dependencies]
# The version of firefly-balius should match the version of firefly-cardano which you are using.
firefly-balius = { git = "https://github.com/hyperledger/firefly-cardano", rev = "0.4.2" }
firefly-balius = { git = "https://github.com/hyperledger/firefly-cardano", rev = "<firefly cardano version>" }
pallas-addresses = "0.32"
serde = { version = "1", features = ["derive"] }

Expand Down Expand Up @@ -243,7 +243,7 @@ This tool will

```sh
# The version here should match the version of firefly-cardano which you are using.
cargo install --git https://github.com/hyperledger/firefly-cardano --version 0.3.1 firefly-cardano-deploy
cargo install --git https://github.com/hyperledger/firefly-cardano --version <firefly cardano version> firefly-cardano-deploy

CONTRACT_PATH="/path/to/your/dapp"
FIREFLY_URL="http://localhost:5000"
Expand Down
10 changes: 5 additions & 5 deletions internal/blockchain/cardano/cardano.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ func (c *Cardano) Init(ctx context.Context, cancelCtx context.CancelFunc, conf c
}

if c.wsConfig.WSKeyPath == "" {
c.wsConfig.WSKeyPath = "/ws"
c.wsConfig.WSKeyPath = "/api/v1/ws"
}

c.streamIDs = make(map[string]string)
Expand Down Expand Up @@ -243,7 +243,7 @@ func (c *Cardano) DeployContract(ctx context.Context, nsOpID, signingKey string,
SetContext(ctx).
SetBody(body).
SetError(&resErr).
Post("/contracts/deploy")
Post("/api/v1/contracts/deploy")
if err != nil || !res.IsSuccess() {
return resErr.SubmissionRejected, common.WrapRESTError(ctx, &resErr, res, err, coremsgs.MsgCardanoconnectRESTErr)
}
Expand Down Expand Up @@ -287,7 +287,7 @@ func (c *Cardano) InvokeContract(ctx context.Context, nsOpID string, signingKey
SetContext(ctx).
SetBody(body).
SetError(&resErr).
Post("/contracts/invoke")
Post("/api/v1/contracts/invoke")
if err != nil || !res.IsSuccess() {
return resErr.SubmissionRejected, common.WrapRESTError(ctx, &resErr, res, err, coremsgs.MsgCardanoconnectRESTErr)
}
Expand Down Expand Up @@ -324,7 +324,7 @@ func (c *Cardano) QueryContract(ctx context.Context, signingKey string, location
SetContext(ctx).
SetBody(body).
SetError(&resErr).
Post("/contracts/query")
Post("/api/v1/contracts/query")
if err != nil || !res.IsSuccess() {
return nil, common.WrapRESTError(ctx, &resErr, res, err, coremsgs.MsgCardanoconnectRESTErr)
}
Expand Down Expand Up @@ -488,7 +488,7 @@ func (c *Cardano) GetAndConvertDeprecatedContractConfig(ctx context.Context) (lo
func (c *Cardano) GetTransactionStatus(ctx context.Context, operation *core.Operation) (interface{}, error) {
txnID := (&core.PreparedOperation{ID: operation.ID, Namespace: operation.Namespace}).NamespacedIDString()

transactionRequestPath := fmt.Sprintf("/transactions/%s", txnID)
transactionRequestPath := fmt.Sprintf("/api/v1/transactions/%s", txnID)
client := c.client
var resErr common.BlockchainRESTError
var statusResponse fftypes.JSONObject
Expand Down
Loading