Skip to content

Commit 8bd1ca1

Browse files
authored
chore: make format golines (#1162)
Signed-off-by: Chris Gianelloni <[email protected]>
1 parent 71658ab commit 8bd1ca1

File tree

3 files changed

+19
-4
lines changed

3 files changed

+19
-4
lines changed

ledger/common/script.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,10 @@ func (s PlutusV3Script) Hash() ScriptHash {
140140
)
141141
}
142142

143-
func (s PlutusV3Script) Evaluate(scriptContext data.PlutusData, budget ExUnits) (ExUnits, error) {
143+
func (s PlutusV3Script) Evaluate(
144+
scriptContext data.PlutusData,
145+
budget ExUnits,
146+
) (ExUnits, error) {
144147
var usedExUnits ExUnits
145148
// Set budget
146149
machineBudget := cek.DefaultExBudget

ledger/common/script/context_test.go

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,11 @@ func TestScriptContextV3(t *testing.T) {
193193
t.Run(
194194
testDef.name,
195195
func(t *testing.T) {
196-
txInfo, err := buildTxInfoV3(testDef.txHex, testDef.inputsHex, testDef.outputsHex)
196+
txInfo, err := buildTxInfoV3(
197+
testDef.txHex,
198+
testDef.inputsHex,
199+
testDef.outputsHex,
200+
)
197201
if err != nil {
198202
t.Fatalf("unexpected error: %s", err)
199203
}
@@ -217,7 +221,11 @@ func TestScriptContextV3(t *testing.T) {
217221
}
218222
scCborHex := hex.EncodeToString(scCbor)
219223
if scCborHex != testDef.expectedCbor {
220-
t.Fatalf("did not get expected ScriptContext CBOR\n got: %s\n wanted: %s", scCborHex, testDef.expectedCbor)
224+
t.Fatalf(
225+
"did not get expected ScriptContext CBOR\n got: %s\n wanted: %s",
226+
scCborHex,
227+
testDef.expectedCbor,
228+
)
221229
}
222230
},
223231
)

ledger/common/script_test.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,11 @@ func TestScriptRefDecodeEncode(t *testing.T) {
4545
t.Fatalf("unexpected error: %s", err)
4646
}
4747
if hex.EncodeToString(scriptRefCbor) != testCborHex {
48-
t.Fatalf("did not get expected CBOR\n got: %x\n wanted: %s", scriptRefCbor, testCborHex)
48+
t.Fatalf(
49+
"did not get expected CBOR\n got: %x\n wanted: %s",
50+
scriptRefCbor,
51+
testCborHex,
52+
)
4953
}
5054
}
5155

0 commit comments

Comments
 (0)