Draft first standard module for ByteArray
This commit is contained in:
parent
2e5406afa3
commit
b7edb7e584
|
@ -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,
|
|
||||||
}
|
|
Loading…
Reference in New Issue