mirror of
https://github.com/oceanprotocol/market.git
synced 2024-12-02 05:57:29 +01:00
change dummy address
This commit is contained in:
parent
6cbdb0d722
commit
0e8e763649
@ -4,6 +4,8 @@ import { AssetExtended } from 'src/@types/AssetExtended'
|
||||
|
||||
export const locale: string = 'en-US'
|
||||
|
||||
export const mockWallet: string = '0x02f28391AAECE3654F4ece783d777dde4300d5ef' // dummy account for stories
|
||||
|
||||
export const asset: Asset = {
|
||||
'@context': ['https://w3id.org/did/v1'],
|
||||
purgatory: {
|
||||
@ -25,7 +27,7 @@ export const asset: Asset = {
|
||||
block: 10771807,
|
||||
contract: '0x58390B3527A3Ac42F92bF2A12a29fFBE832206bA',
|
||||
datetime: '2022-05-31T11:17:52',
|
||||
from: '0x491AECC4b3d690a4D7027A385499fd04fE50b796',
|
||||
from: mockWallet,
|
||||
tx: '0xa5abd03b5804918fe5e13145ab511e536da66b73fd8123fe2a6aff47ea2a221b'
|
||||
},
|
||||
id: 'did:op:72468f062a26f9eb668b6392a0bbdeebd33f889b2c31e2c91768eba35a31cd94',
|
||||
@ -46,7 +48,7 @@ export const asset: Asset = {
|
||||
address: '0x58390B3527A3Ac42F92bF2A12a29fFBE832206bA',
|
||||
created: '2022-05-30T13:52:09',
|
||||
name: 'Ocean Data NFT',
|
||||
owner: '0x491AECC4b3d690a4D7027A385499fd04fE50b796',
|
||||
owner: mockWallet,
|
||||
state: 0,
|
||||
symbol: 'OCEAN-NFT',
|
||||
tokenURI:
|
||||
|
@ -2,7 +2,7 @@ import React from 'react'
|
||||
import { ComponentStory, ComponentMeta } from '@storybook/react'
|
||||
import AssetList, { AssetListProps } from '@shared/AssetList'
|
||||
import * as config from '../../../../app.config'
|
||||
import { assets, locale } from '../../../../.storybook/__mockdata__'
|
||||
import { assets, locale, mockWallet } from '../../../../.storybook/__mockdata__'
|
||||
import UrqlClientProvider from '@context/UrqlProvider'
|
||||
|
||||
export default {
|
||||
@ -28,5 +28,5 @@ Default.args = {
|
||||
assets,
|
||||
showPagination: false,
|
||||
chainIds: config.chainIds,
|
||||
accountId: '0x491AECC4b3d690a4D7027A385499fd04fE50b796'
|
||||
accountId: mockWallet
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
import React from 'react'
|
||||
import { act, render } from '@testing-library/react'
|
||||
import { assets, locale } from '../../../../.storybook/__mockdata__'
|
||||
import { assets, locale, mockWallet } from '../../../../.storybook/__mockdata__'
|
||||
import * as config from '../../../../app.config'
|
||||
import AssetList from './'
|
||||
import UrqlClientProvider from '@context/UrqlProvider'
|
||||
@ -11,7 +11,7 @@ test('render AssetList with arc', async () => {
|
||||
assets,
|
||||
showPagination: false,
|
||||
chainIds: config.chainIds,
|
||||
accountId: '0x491AECC4b3d690a4D7027A385499fd04fE50b796'
|
||||
accountId: mockWallet
|
||||
}
|
||||
// TODO: remove eslint rule (testing-library/no-unnecessary-act) and solve act issue
|
||||
// eslint-disable-next-line testing-library/no-unnecessary-act
|
||||
|
Loading…
x
Reference in New Issue
Block a user