File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -135,7 +135,7 @@ export class Canvas<
135135
136136 const topicHashComponents : { args ?: Uint8Array ; snapshot ?: Uint8Array ; code ?: Uint8Array } = { }
137137 if ( args . length > 0 ) {
138- topicHashComponents . args = cbor . encode ( args )
138+ topicHashComponents . args = sha256 ( cbor . encode ( args ) )
139139 }
140140 if ( config . snapshot ) {
141141 topicHashComponents . snapshot = sha256 ( cbor . encode ( config . snapshot ) )
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ function computeTopicHash(components: { args?: any[]; code?: string; snapshot?:
1111 const topicHashComponents : { args ?: Uint8Array ; snapshot ?: Uint8Array ; code ?: Uint8Array } = { }
1212
1313 if ( components . args && components . args . length > 0 ) {
14- topicHashComponents . args = cbor . encode ( components . args )
14+ topicHashComponents . args = sha256 ( cbor . encode ( components . args ) )
1515 }
1616 if ( components . snapshot ) {
1717 topicHashComponents . snapshot = sha256 ( cbor . encode ( components . snapshot ) )
You can’t perform that action at this time.
0 commit comments