File tree Expand file tree Collapse file tree 6 files changed +19
-21
lines changed Expand file tree Collapse file tree 6 files changed +19
-21
lines changed Original file line number Diff line number Diff line change @@ -190,12 +190,12 @@ func (p *AlonzoProtocolParameters) Utxorpc() *cardano.PParams {
190
190
},
191
191
},
192
192
MaxExecutionUnitsPerTransaction : & cardano.ExUnits {
193
- Memory : uint64 ( p .MaxTxExUnits .Memory ) ,
194
- Steps : uint64 ( p .MaxTxExUnits .Steps ) ,
193
+ Memory : p .MaxTxExUnits .Memory ,
194
+ Steps : p .MaxTxExUnits .Steps ,
195
195
},
196
196
MaxExecutionUnitsPerBlock : & cardano.ExUnits {
197
- Memory : uint64 ( p .MaxBlockExUnits .Memory ) ,
198
- Steps : uint64 ( p .MaxBlockExUnits .Steps ) ,
197
+ Memory : p .MaxBlockExUnits .Memory ,
198
+ Steps : p .MaxBlockExUnits .Steps ,
199
199
},
200
200
}
201
201
}
Original file line number Diff line number Diff line change @@ -229,12 +229,12 @@ func (p *BabbageProtocolParameters) Utxorpc() *cardano.PParams {
229
229
},
230
230
},
231
231
MaxExecutionUnitsPerTransaction : & cardano.ExUnits {
232
- Memory : uint64 ( p .MaxTxExUnits .Memory ) ,
233
- Steps : uint64 ( p .MaxTxExUnits .Steps ) ,
232
+ Memory : p .MaxTxExUnits .Memory ,
233
+ Steps : p .MaxTxExUnits .Steps ,
234
234
},
235
235
MaxExecutionUnitsPerBlock : & cardano.ExUnits {
236
- Memory : uint64 ( p .MaxBlockExUnits .Memory ) ,
237
- Steps : uint64 ( p .MaxBlockExUnits .Steps ) ,
236
+ Memory : p .MaxBlockExUnits .Memory ,
237
+ Steps : p .MaxBlockExUnits .Steps ,
238
238
},
239
239
}
240
240
}
Original file line number Diff line number Diff line change @@ -112,10 +112,8 @@ func (h *ByronMainBlockHeader) BlockNumber() uint64 {
112
112
}
113
113
114
114
func (h * ByronMainBlockHeader ) SlotNumber () uint64 {
115
- return uint64 (
116
- (h .ConsensusData .SlotId .Epoch * ByronSlotsPerEpoch ) + uint64 (
117
- h .ConsensusData .SlotId .Slot ,
118
- ),
115
+ return (h .ConsensusData .SlotId .Epoch * ByronSlotsPerEpoch ) + uint64 (
116
+ h .ConsensusData .SlotId .Slot ,
119
117
)
120
118
}
121
119
@@ -548,7 +546,7 @@ func (h *ByronEpochBoundaryBlockHeader) BlockNumber() uint64 {
548
546
}
549
547
550
548
func (h * ByronEpochBoundaryBlockHeader ) SlotNumber () uint64 {
551
- return uint64 ( h .ConsensusData .Epoch * ByronSlotsPerEpoch )
549
+ return h .ConsensusData .Epoch * ByronSlotsPerEpoch
552
550
}
553
551
554
552
func (h * ByronEpochBoundaryBlockHeader ) IssuerVkey () common.IssuerVkey {
Original file line number Diff line number Diff line change @@ -405,7 +405,7 @@ func (a Address) Bytes() []byte {
405
405
ret := []byte {}
406
406
ret = append (
407
407
ret ,
408
- (byte ( a .addressType ) << 4 )| (byte ( a .networkId ) & AddressHeaderNetworkMask ),
408
+ (a .addressType << 4 )| (a .networkId & AddressHeaderNetworkMask ),
409
409
)
410
410
ret = append (ret , a .paymentAddress ... )
411
411
ret = append (ret , a .stakingAddress ... )
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ func NewBlake2b256(data []byte) Blake2b256 {
40
40
}
41
41
42
42
func (b Blake2b256 ) String () string {
43
- return hex .EncodeToString ([] byte ( b [:]) )
43
+ return hex .EncodeToString (b [:])
44
44
}
45
45
46
46
func (b Blake2b256 ) Bytes () []byte {
@@ -71,7 +71,7 @@ func NewBlake2b224(data []byte) Blake2b224 {
71
71
}
72
72
73
73
func (b Blake2b224 ) String () string {
74
- return hex .EncodeToString ([] byte ( b [:]) )
74
+ return hex .EncodeToString (b [:])
75
75
}
76
76
77
77
func (b Blake2b224 ) Bytes () []byte {
@@ -106,7 +106,7 @@ func NewBlake2b160(data []byte) Blake2b160 {
106
106
}
107
107
108
108
func (b Blake2b160 ) String () string {
109
- return hex .EncodeToString ([] byte ( b [:]) )
109
+ return hex .EncodeToString (b [:])
110
110
}
111
111
112
112
func (b Blake2b160 ) Bytes () []byte {
Original file line number Diff line number Diff line change @@ -132,12 +132,12 @@ func (p *ConwayProtocolParameters) Utxorpc() *cardano.PParams {
132
132
},
133
133
},
134
134
MaxExecutionUnitsPerTransaction : & cardano.ExUnits {
135
- Memory : uint64 ( p .MaxTxExUnits .Memory ) ,
136
- Steps : uint64 ( p .MaxTxExUnits .Steps ) ,
135
+ Memory : p .MaxTxExUnits .Memory ,
136
+ Steps : p .MaxTxExUnits .Steps ,
137
137
},
138
138
MaxExecutionUnitsPerBlock : & cardano.ExUnits {
139
- Memory : uint64 ( p .MaxBlockExUnits .Memory ) ,
140
- Steps : uint64 ( p .MaxBlockExUnits .Steps ) ,
139
+ Memory : p .MaxBlockExUnits .Memory ,
140
+ Steps : p .MaxBlockExUnits .Steps ,
141
141
},
142
142
}
143
143
}
You can’t perform that action at this time.
0 commit comments