File tree Expand file tree Collapse file tree 1 file changed +1
-10
lines changed Expand file tree Collapse file tree 1 file changed +1
-10
lines changed Original file line number Diff line number Diff line change @@ -197,18 +197,9 @@ func testMintAssetWithDecimalDisplayMetaField(t *harnessTest) {
197197 _ , err = t .tapd .MintAsset (ctxt , secondAssetReq )
198198 require .ErrorContains (t .t , err , "decimal display does not match" )
199199
200- // Requesting a decimal display without specifying the metadata field
201- // with at least the type should fail.
202- secondAssetReq .Asset .DecimalDisplay = firstAsset .DecimalDisplay
203- secondAssetReq .Asset .AssetMeta = nil
204-
205- _ , err = t .tapd .MintAsset (ctxt , secondAssetReq )
206- require .ErrorContains (
207- t .t , err , "decimal display requires asset metadata" ,
208- )
209-
210200 // Attempting to set a different decimal display in the JSON meta data
211201 // as in the new RPC request field should give us an error as well.
202+ secondAssetReq .Asset .DecimalDisplay = firstAsset .DecimalDisplay
212203 secondAssetReq .Asset .AssetMeta = & taprpc.AssetMeta {
213204 Type : taprpc .AssetMetaType_META_TYPE_JSON ,
214205 Data : []byte (`{"foo": "bar", "decimal_display": 3}` ),
You can’t perform that action at this time.
0 commit comments