on master help sign in
store: finish syncOwnedPoint -> syncExtras rename

In #582 we had renamed some syncing functions, but neglected to replace-all for the syncOwnedPoint case. This completes what was started.

commit956a6f6c3c60f80827e9568925f4647cca96a3e1 authorFang <git@fang.io> dateWed 30 Jun 2021, 13:12 (5 years ago) parentf6cda0a
3 files changed+10−10
src/views/AcceptTransfer.js+3−3 src/views/Party/PartySetPoolSize.js+2−2 src/views/UrbitOS/ChangeSponsor.js+5−5
src/views/AcceptTransfer.js+3−3
@@ -25,7 +25,7 @@ import { composeValidator, buildCheckboxValidator } from 'form/validators';
2525function useAcceptTransfer() {
2626 const { contracts } = useNetwork();
2727 const { pointCursor } = usePointCursor();
28− const { syncOwnedPoint, syncControlledPoints } = usePointCache();
28+ const { syncExtras, syncControlledPoints } = usePointCache();
2929 const { wallet } = useWallet();
3030
3131 const _contracts = need.contracts(contracts);
@@ -39,8 +39,8 @@ function useAcceptTransfer() {
3939 [_contracts, _point, _address]
4040 ),
4141 useCallback(
42− () => Promise.all([syncOwnedPoint(_point), syncControlledPoints()]),
43− [_point, syncControlledPoints, syncOwnedPoint]
42+ () => Promise.all([syncExtras(_point), syncControlledPoints()]),
43+ [_point, syncControlledPoints, syncExtras]
4444 ),
4545 GAS_LIMITS.TRANSFER
4646 );
src/views/Party/PartySetPoolSize.js+2−2
@@ -33,7 +33,7 @@ import CopiableAddress from 'components/CopiableAddress';
3333function useSetPoolSize() {
3434 const { contracts } = useNetwork();
3535 const { pointCursor } = usePointCursor();
36− const { syncOwnedPoint } = usePointCache();
36+ const { syncExtras } = usePointCache();
3737
3838 const _contracts = need.contracts(contracts);
3939 const _point = need.point(pointCursor);
@@ -49,7 +49,7 @@ function useSetPoolSize() {
4949 ),
5050 [_contracts, _point]
5151 ),
52− useCallback(() => syncOwnedPoint(_point), [_point, syncOwnedPoint]),
52+ useCallback(() => syncExtras(_point), [_point, syncExtras]),
5353 GAS_LIMITS.DEFAULT // TODO: GAS_LIMITS.SET_POOL_SIZE
5454 );
5555}
src/views/UrbitOS/ChangeSponsor.js+5−5
@@ -26,7 +26,7 @@ import useEthereumTransaction from 'lib/useEthereumTransaction';
2626function useChangeSponsor() {
2727 const { contracts } = useNetwork();
2828 const { pointCursor } = usePointCursor();
29− const { syncOwnedPoint } = usePointCache();
29+ const { syncExtras } = usePointCache();
3030
3131 const _contracts = need.contracts(contracts);
3232 const point = need.point(pointCursor);
@@ -37,8 +37,8 @@ function useChangeSponsor() {
3737 _contracts,
3838 ]),
3939 useCallback(() => {
40− syncOwnedPoint(point);
41− }, [syncOwnedPoint, point])
40+ syncExtras(point);
41+ }, [syncExtras, point])
4242 );
4343}
4444
@@ -128,7 +128,7 @@ function ChangeSponsor({ onDone }) {
128128function useCancelEscape() {
129129 const { contracts } = useNetwork();
130130 const { pointCursor } = usePointCursor();
131− const { syncOwnedPoint } = usePointCache();
131+ const { syncExtras } = usePointCache();
132132
133133 const _contracts = need.contracts(contracts);
134134 const point = need.point(pointCursor);
@@ -138,7 +138,7 @@ function useCancelEscape() {
138138 point,
139139 _contracts,
140140 ]),
141− useCallback(() => syncOwnedPoint(point), [point, syncOwnedPoint])
141+ useCallback(() => syncExtras(point), [point, syncExtras])
142142 );
143143}
144144