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

[WIP] Test- order evm service #344

Closed
wants to merge 13 commits into from
7 changes: 7 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,13 @@ jobs:
- name: Checkout repository
uses: actions/[email protected]

- name: Set up Redis
uses: shogo82148/[email protected]
with:
redis-version: '6.0'

- run: redis-cli ping

- name: Set up Go
uses: actions/setup-go@v3
with:
Expand Down
2 changes: 1 addition & 1 deletion controllers/accounts/profile_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ var testCtx = struct {

func setup() error {
// Set up test blockchain client
client, err := test.SetUpTestBlockchain()
client, err := test.SetUpTestBlockchain(map[string]interface{}{})
if err != nil {
return err
}
Expand Down
1 change: 1 addition & 0 deletions controllers/provider/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -559,6 +559,7 @@ func (ctrl *ProviderController) GetMarketRate(ctx *gin.Context) {
u.APIResponse(ctx, http.StatusBadRequest, "error", "Token is not supported", nil)
return
}
// TODO: use token to get the token rate for that currency based on the USD/Token Ratio USD/USDC can be 1.005 and USD/USD can be 0.9995

currency, err := storage.Client.FiatCurrency.
Query().
Expand Down
Loading
Loading