Draft first standard module for ByteArray
This commit is contained in:
5
examples/aiken_std/lib/aiken/bytearray.ak
Normal file
5
examples/aiken_std/lib/aiken/bytearray.ak
Normal file
@@ -0,0 +1,5 @@
|
||||
use aiken/builtins
|
||||
|
||||
pub fn slice(bytes: ByteArray, start: Int, end: Int) -> ByteArray {
|
||||
builtins.sliceByteString(start, end, bytes)
|
||||
}
|
||||
@@ -1,8 +0,0 @@
|
||||
pub type ScriptContext(purpose) {
|
||||
tx_info: TxInfo,
|
||||
script_purpose: purpose,
|
||||
}
|
||||
|
||||
pub type TxInfo {
|
||||
idk: Int,
|
||||
}
|
||||
Reference in New Issue
Block a user