@@ -1310,7 +1310,7 @@ func TestInstrumentCreateAmendments(t *testing.T) {
1310
1310
}
1311
1311
1312
1312
func TestInstrumentCreateAmendmentsCouponName (t * testing.T ) {
1313
- currentCoupon := & instruments.Coupon {
1313
+ currentCoupon := & instruments.DiscountCoupon {
1314
1314
FaceValue : & instruments.CurrencyValueField {
1315
1315
Value : 100 ,
1316
1316
CurrencyCode : "USD" ,
@@ -1324,11 +1324,11 @@ func TestInstrumentCreateAmendmentsCouponName(t *testing.T) {
1324
1324
current := & InstrumentCreation {
1325
1325
TradeRestrictions : []string {"AUS" },
1326
1326
AuthorizedTokenQty : 10000 ,
1327
- InstrumentType : instruments .CodeCoupon ,
1327
+ InstrumentType : instruments .CodeDiscountCoupon ,
1328
1328
InstrumentPayload : cb ,
1329
1329
}
1330
1330
1331
- newCoupon := & instruments.Coupon {
1331
+ newCoupon := & instruments.DiscountCoupon {
1332
1332
FaceValue : & instruments.CurrencyValueField {
1333
1333
Value : 100 ,
1334
1334
CurrencyCode : "USD" ,
@@ -1342,7 +1342,7 @@ func TestInstrumentCreateAmendmentsCouponName(t *testing.T) {
1342
1342
newValue := & InstrumentDefinition {
1343
1343
TradeRestrictions : []string {"AUS" },
1344
1344
AuthorizedTokenQty : 10000 ,
1345
- InstrumentType : instruments .CodeCoupon ,
1345
+ InstrumentType : instruments .CodeDiscountCoupon ,
1346
1346
InstrumentPayload : nb ,
1347
1347
}
1348
1348
@@ -1357,9 +1357,10 @@ func TestInstrumentCreateAmendmentsCouponName(t *testing.T) {
1357
1357
1358
1358
// Check amendment
1359
1359
expectedAmendment := & AmendmentField {
1360
- FieldIndexPath : []byte {2 , byte (InstrumentFieldInstrumentPayload ), byte (instruments .CouponFieldCouponName )},
1361
- Operation : 0 ,
1362
- Data : []byte ("New Test Coupon" ),
1360
+ FieldIndexPath : []byte {2 , byte (InstrumentFieldInstrumentPayload ),
1361
+ byte (instruments .DiscountCouponFieldCouponName )},
1362
+ Operation : 0 ,
1363
+ Data : []byte ("New Test Coupon" ),
1363
1364
}
1364
1365
1365
1366
if ! amendments [0 ].Equal (expectedAmendment ) {
0 commit comments