on master help sign in
More consistent revision naming
a4c9ba2Fang
src/lib/reticket.js+2−5
@@ -33,7 +33,7 @@ export async function reticketPointBetweenWallets({
33 contracts,
33 contracts,
34 onUpdate,
34 onUpdate,
35 transferEth = false,
35 transferEth = false,
36− nextNetworkKeyRevision = INITIAL_NETWORK_KEY_REVISION,
36+ nextRevision = INITIAL_NETWORK_KEY_REVISION,
37}) {
37}) {
38 const askForFunding = (address, minBalance, balance) =>
38 const askForFunding = (address, minBalance, balance) =>
39 onUpdate({
39 onUpdate({
@@ -66,10 +66,7 @@ export async function reticketPointBetweenWallets({
66 transferTmpTx.gas = GAS_LIMITS.TRANSFER;
66 transferTmpTx.gas = GAS_LIMITS.TRANSFER;
67
67
68 // configure networking public keys
68 // configure networking public keys
69− const seed = await deriveNetworkSeedFromUrbitWallet(
69+ const seed = await deriveNetworkSeedFromUrbitWallet(toWallet, nextRevision);
70− toWallet,
71− nextNetworkKeyRevision
72− );
73
70
74 const networkSeed = seed.matchWith({
71 const networkSeed = seed.matchWith({
75 Nothing: () => {
72 Nothing: () => {
src/views/Admin/Reticket/ReticketExecute.js+1−1
@@ -66,7 +66,7 @@ export default function ReticketExecute({ newWallet, setNewWallet }) {
66 web3: need.web3(web3),
66 web3: need.web3(web3),
67 contracts: need.contracts(contracts),
67 contracts: need.contracts(contracts),
68 onUpdate: handleUpdate,
68 onUpdate: handleUpdate,
69− nextNetworkKeyRevision: networkRevision + 1,
69+ nextRevision: networkRevision + 1,
70 });
70 });
71 } catch (err) {
71 } catch (err) {
72 setGeneralError(err);
72 setGeneralError(err);