Skip to content

Commit

Permalink
fix(GATE-7): Call 'ceiling' on DAI bridge instead of 'maxTotalBalance' (
Browse files Browse the repository at this point in the history
  • Loading branch information
dan-ziv authored May 22, 2022
1 parent 8df33d4 commit 50a2780
Show file tree
Hide file tree
Showing 19 changed files with 605 additions and 70 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,5 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
msg: "This branch was successfully deployed :rocket:\n
https://pr${{ github.event.pull_request.number }}-goerli.starkgate.starknet.io"
msg: "This branch was successfully deployed :rocket:\nhttps://pr${{ github.event.pull_request.number }}-goerli.starkgate.starknet.io"
check_for_duplicate_msg: true
18 changes: 10 additions & 8 deletions src/__tests__/utils/token.spec.js
Original file line number Diff line number Diff line change
@@ -1,19 +1,21 @@
import {isEth} from '../../utils';
import {isDai, isEth} from '../../utils';

describe('isEth', () => {
it('should return true for eth symbol as string', () => {
it('should return true for eth symbol', () => {
expect(isEth('ETH')).toBeTruthy();
});

it('should return true for eth token as object', () => {
expect(isEth({symbol: 'ETH'})).toBeTruthy();
it('should return false for non-eth symbol', () => {
expect(isEth('DAI')).toBeFalsy();
});
});

it('should return false for non-eth symbol as string', () => {
expect(isEth('DAI')).toBeFalsy();
describe('isDai', () => {
it('should return true for eth symbol', () => {
expect(isDai('DAI')).toBeTruthy();
});

it('should return false for non-eth token as object', () => {
expect(isEth({symbol: 'DAI'})).toBeFalsy();
it('should return false for non-eth symbol', () => {
expect(isDai('ETH')).toBeFalsy();
});
});
File renamed without changes.
Loading

0 comments on commit 50a2780

Please sign in to comment.