File tree Expand file tree Collapse file tree 5 files changed +10
-11
lines changed
src/main/java/net/corda/samples/tokentofriend/webserver
src/main/java/net/corda/samples/tokentofriend/states
workflows/src/main/java/net/corda/samples/tokentofriend/flows Expand file tree Collapse file tree 5 files changed +10
-11
lines changed Original file line number Diff line number Diff line change @@ -5,11 +5,11 @@ buildscript {
55 }
66 }
77 dependencies {
8- classpath(" com.moowork. gradle:gradle-node-plugin:1.3.1 " )
8+ classpath(" com.github.node- gradle:gradle-node-plugin:4.0.0 " )
99 }
1010}
1111
12- apply plugin : " com.moowork .node"
12+ apply plugin : " com.github.node-gradle .node"
1313apply plugin : ' org.springframework.boot'
1414sourceSets {
1515 main {
@@ -23,6 +23,7 @@ dependencies {
2323 implementation ' com.google.code.gson:gson:2.8.5'
2424
2525 // Corda dependencies.
26+ implementation " $corda_release_group :corda-core:$corda_release_version "
2627 implementation " $corda_release_group :corda-rpc:$corda_release_version "
2728
2829 // CorDapp dependencies.
@@ -34,6 +35,7 @@ dependencies {
3435 implementation " org.apache.logging.log4j:log4j-slf4j2-impl:${ log4j_version} "
3536 implementation " org.apache.logging.log4j:log4j-web:${ log4j_version} "
3637 implementation " org.slf4j:jul-to-slf4j:$slf4j_version "
38+ implementation " org.bouncycastle:bcprov-lts8on:2.73.6"
3739}
3840
3941springBoot {
Original file line number Diff line number Diff line change 77import org .springframework .beans .factory .annotation .Value ;
88import org .springframework .stereotype .Component ;
99
10- import javax .annotation .PostConstruct ;
11- import javax .annotation .PreDestroy ;
10+ import jakarta .annotation .PostConstruct ;
11+ import jakarta .annotation .PreDestroy ;
1212
1313/**
1414 * Wraps an RPC connection to a Corda node.
Original file line number Diff line number Diff line change @@ -28,10 +28,13 @@ sourceSets {
2828}
2929
3030dependencies {
31+ testImplementation " junit:junit:$junit_version "
3132 // Corda dependencies.
3233 cordaProvided " $corda_core_release_group :corda-core:$corda_core_release_version "
3334 cordaProvided " $corda_release_group :corda:$corda_release_version "
3435 testImplementation " $corda_release_group :corda-node-driver:$corda_release_version "
36+ testImplementation " $corda_core_release_group :corda-test-utils:$corda_core_release_version "
37+ testImplementation " $corda_core_release_group :corda-core-test-utils:$corda_core_release_version "
3538 // Token SDK dependencies.
3639 cordaProvided " $tokens_release_group :tokens-contracts:$tokens_release_version "
3740}
Original file line number Diff line number Diff line change @@ -89,10 +89,4 @@ public List<Party> getMaintainers() {
8989 maintainers .add (this .maintainer );
9090 return maintainers ;
9191 }
92-
93- /* This method returns a TokenPointer by using the linear Id of the evolvable state */
94- public TokenPointer <CustomTokenState > toPointer (){
95- LinearPointer <CustomTokenState > linearPointer = new LinearPointer <>(linearId , CustomTokenState .class );
96- return new TokenPointer <>(linearPointer , fractionDigits );
97- }
9892}
Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ public String call() throws FlowException {
4949 * */
5050 IssuedTokenType issuedToken = new NonFungibleTokenBuilder ()
5151 .issuedBy (getOurIdentity ())
52- .ofTokenType (customTokenState .toPointer ())
52+ .ofTokenType (customTokenState .toPointer (customTokenState . getClass () ))
5353 .buildIssuedTokenType ();
5454
5555 /* Create an instance of the non-fungible house token with the owner as the token holder. The last paramter is a hash of the jar containing the TokenType, use the helper function to fetch it. */
You can’t perform that action at this time.
0 commit comments