Skip to content

Commit 067ab13

Browse files
authored
Update README.md
1 parent 530740c commit 067ab13

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

Tokens/fungiblehousetoken/README.md

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,17 +21,12 @@ We create the representation of a house, within `CreateHouseTokenFlow.java`.
2121
```java
2222
public SignedTransaction call() throws FlowException {
2323
// Obtain a reference to a notary we wish to use.
24-
/** METHOD 1: Take first notary on network, WARNING: use for test, non-prod environments, and single-notary networks only!*
25-
* METHOD 2: Explicit selection of notary by CordaX500Name - argument can by coded in flow or parsed from config (Preferred)
26-
*
27-
* * - For production you always want to use Method 2 as it guarantees the expected notary is returned.
28-
*/
2924
final Party notary = getServiceHub().getNetworkMapCache().getNotaryIdentities().get(0); // METHOD 1
3025
// final Party notary = getServiceHub().getNetworkMapCache().getNotary(CordaX500Name.parse("O=Notary,L=London,C=GB")); // METHOD 2
3126

3227
//create token type
3328
FungibleHouseTokenState evolvableTokenType = new FungibleHouseTokenState(valuation, getOurIdentity(),
34-
new UniqueIdentifier(), 0, this.symbol);
29+
new UniqueIdentifier(), 0, this.symbol);
3530

3631
//wrap it with transaction state specifying the notary
3732
TransactionState<FungibleHouseTokenState> transactionState = new TransactionState<>(evolvableTokenType, notary);

0 commit comments

Comments
 (0)