on master help sign in
Simpler (but broader) props passing to StatelessTransaction
e66e8abFang
src/bridge/Bridge.js+1
@@ -353,6 +353,7 @@ class Bridge extends React.Component {
353 networkRevisionCache={ networkRevisionCache }
353 networkRevisionCache={ networkRevisionCache }
354 setNetworkSeedCache= { this.setNetworkSeedCache }
354 setNetworkSeedCache= { this.setNetworkSeedCache }
355 // txn
355 // txn
356+ onSent={ this.setTxnHashCursor }
356 setTxnHashCursor={ this.setTxnHashCursor }
357 setTxnHashCursor={ this.setTxnHashCursor }
357 txnHashCursor={ txnHashCursor }
358 txnHashCursor={ txnHashCursor }
358 setTxnConfirmations={ this.setTxnConfirmations }
359 setTxnConfirmations={ this.setTxnConfirmations }
src/bridge/views/AcceptTransfer.js+1−10
@@ -97,16 +97,7 @@ class AcceptTransfer extends React.Component {
97
97
98 <StatelessTransaction
98 <StatelessTransaction
99 // Upper scope
99 // Upper scope
100− web3={props.web3}
100+ {...props}
101− contracts={props.contracts}
102− wallet={props.wallet}
103− walletType={props.walletType}
104− walletHdPath={props.walletHdPath}
105− networkType={props.networkType}
106− onSent={props.setTxnHashCursor}
107− setTxnConfirmations={props.setTxnConfirmations}
108− popRoute={props.popRoute}
109− pushRoute={props.pushRoute}
110 // Other
101 // Other
111 canGenerate={ canGenerate }
102 canGenerate={ canGenerate }
112 createUnsignedTxn={this.createUnsignedTxn}
103 createUnsignedTxn={this.createUnsignedTxn}
src/bridge/views/CancelTransfer.js+1−10
@@ -65,16 +65,7 @@ class CancelTransfer extends React.Component {
65 </P>
65 </P>
66 <StatelessTransaction
66 <StatelessTransaction
67 // Upper scope
67 // Upper scope
68− web3={props.web3}
68+ {...props}
69− contracts={props.contracts}
70− wallet={props.wallet}
71− walletType={props.walletType}
72− walletHdPath={props.walletHdPath}
73− networkType={props.networkType}
74− onSent={props.setTxnHashCursor}
75− setTxnConfirmations={props.setTxnConfirmations}
76− popRoute={props.popRoute}
77− pushRoute={props.pushRoute}
78 // Other
69 // Other
79 canGenerate={ canGenerate }
70 canGenerate={ canGenerate }
80 createUnsignedTxn={this.createUnsignedTxn} />
71 createUnsignedTxn={this.createUnsignedTxn} />
src/bridge/views/CreateGalaxy.js+1−10
@@ -189,16 +189,7 @@ class CreateGalaxy extends React.Component {
189
189
190 <StatelessTransaction
190 <StatelessTransaction
191 // Upper scope
191 // Upper scope
192− web3={props.web3}
192+ {...props}
193− contracts={props.contracts}
194− wallet={props.wallet}
195− walletType={props.walletType}
196− walletHdPath={props.walletHdPath}
197− networkType={props.networkType}
198− onSent={props.setTxnHashCursor}
199− setTxnConfirmations={props.setTxnConfirmations}
200− popRoute={props.popRoute}
201− pushRoute={props.pushRoute}
202 // Other
193 // Other
203 ref={this.statelessRef}
194 ref={this.statelessRef}
204 canGenerate={canGenerate}
195 canGenerate={canGenerate}
src/bridge/views/InvitesManage.js+1−10
@@ -163,16 +163,7 @@ class InvitesManage extends React.Component {
163
163
164 <StatelessTransaction
164 <StatelessTransaction
165 // Upper scope
165 // Upper scope
166− web3={this.props.web3}
167− contracts={this.props.contracts}
168− wallet={this.props.wallet}
169− walletType={this.props.walletType}
170− walletHdPath={this.props.walletHdPath}
171− networkType={this.props.networkType}
172− onSent={this.props.setTxnHashCursor}
173− setTxnConfirmations={this.props.setTxnConfirmations}
174− popRoute={this.props.popRoute}
175− pushRoute={this.props.pushRoute}
166+ {...this.props}
176 // Other
167 // Other
177 canGenerate={this.state.canGenerate}
168 canGenerate={this.state.canGenerate}
178 createUnsignedTxn={this.createUnsignedTxn}
169 createUnsignedTxn={this.createUnsignedTxn}
src/bridge/views/IssueChild.js+1−10
@@ -240,16 +240,7 @@ class IssueChild extends React.Component {
240
240
241 <StatelessTransaction
241 <StatelessTransaction
242 // Upper scope
242 // Upper scope
243− web3={props.web3}
243+ {...props}
244− contracts={props.contracts}
245− wallet={props.wallet}
246− walletType={props.walletType}
247− walletHdPath={props.walletHdPath}
248− networkType={props.networkType}
249− onSent={props.setTxnHashCursor}
250− setTxnConfirmations={props.setTxnConfirmations}
251− popRoute={props.popRoute}
252− pushRoute={props.pushRoute}
253 // Other
244 // Other
254 canGenerate={canGenerate}
245 canGenerate={canGenerate}
255 createUnsignedTxn={this.createUnsignedTxn}
246 createUnsignedTxn={this.createUnsignedTxn}
src/bridge/views/SetKeys.js+1−10
@@ -170,16 +170,7 @@ class SetKeys extends React.Component {
170
170
171 <StatelessTransaction
171 <StatelessTransaction
172 // Upper scope
172 // Upper scope
173− web3={props.web3}
173+ {...props}
174− contracts={props.contracts}
175− wallet={props.wallet}
176− walletType={props.walletType}
177− walletHdPath={props.walletHdPath}
178− networkType={props.networkType}
179− onSent={props.setTxnHashCursor}
180− setTxnConfirmations={props.setTxnConfirmations}
181− popRoute={props.popRoute}
182− pushRoute={props.pushRoute}
183 // Tx
174 // Tx
184 canGenerate={ canGenerate }
175 canGenerate={ canGenerate }
185 createUnsignedTxn={this.createUnsignedTxn}
176 createUnsignedTxn={this.createUnsignedTxn}
src/bridge/views/SetProxy.js+1−10
@@ -169,16 +169,7 @@ class SetProxy extends React.Component {
169
169
170 <StatelessTransaction
170 <StatelessTransaction
171 // Upper scope
171 // Upper scope
172− web3={props.web3}
172+ {...props}
173− contracts={props.contracts}
174− wallet={props.wallet}
175− walletType={props.walletType}
176− walletHdPath={props.walletHdPath}
177− networkType={props.networkType}
178− onSent={props.setTxnHashCursor}
179− setTxnConfirmations={props.setTxnConfirmations}
180− popRoute={props.popRoute}
181− pushRoute={props.pushRoute}
182 // Other
173 // Other
183 ref={this.statelessRef}
174 ref={this.statelessRef}
184 createUnsignedTxn={this.createUnsignedTxn}
175 createUnsignedTxn={this.createUnsignedTxn}
src/bridge/views/Transfer.js+1−10
@@ -110,16 +110,7 @@ class Transfer extends React.Component {
110
110
111 <StatelessTransaction
111 <StatelessTransaction
112 // Upper scope
112 // Upper scope
113− web3={props.web3}
113+ {...props}
114− contracts={props.contracts}
115− wallet={props.wallet}
116− walletType={props.walletType}
117− walletHdPath={props.walletHdPath}
118− networkType={props.networkType}
119− onSent={props.setTxnHashCursor}
120− setTxnConfirmations={props.setTxnConfirmations}
121− popRoute={props.popRoute}
122− pushRoute={props.pushRoute}
123 // Checks
114 // Checks
124 userApproval={state.userApproval}
115 userApproval={state.userApproval}
125 canGenerate={ canGenerate }
116 canGenerate={ canGenerate }